Skip to main content
POST
GitHub OAuth - Handle Callback

Authentication

No authentication required.

Body Parameters

string
required
Authorization code from GitHub.
string
State parameter for CSRF protection.

Example Request

Response

Response Fields

string
JWT token for authenticated requests.
object
User profile information.
boolean
Whether this is a new account created via OAuth.

Status Codes

Notes

  • OAuth users don’t need to verify their email separately
  • If a user with the same email already exists (registered via email/password), the accounts are linked
  • The isNewUser field indicates whether a new account was created or an existing one was used