Endpoint
Authentication
No authentication required.Query Parameters
Set to
"true" to indicate the request is from a mobile client. This will affect the redirect URL used after successful authentication.Response
This endpoint returns an HTTP redirect (302 Found) to GitHub’s OAuth authorization page.Redirect Flow
- User is redirected to GitHub OAuth page
- User authorizes the application
- GitHub redirects back to
/github/callbackwith authorization code
Example Request
cURL
Mobile Client Request
cURL
Implementation Details
- Generates a unique state parameter (UUID) for CSRF protection
- If
mobile=trueis set, the state is prefixed with"mobile-"to identify mobile flows - Redirects to GitHub OAuth URL with appropriate state parameter