Exchange GitHub OAuth code for access token

View as Markdown

Frontend sends the code from GitHub redirect; backend exchanges with GitHub and returns access_token. Frontend then calls POST /auth/login/oauth with it.

Request

code and redirectUri from GitHub callback
codestringRequired
redirectUristringRequired

Response

data: { accessToken }

Errors

400
Bad Request Error
401
Unauthorized Error