Exchange GitHub OAuth code for access token
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
code
redirectUri
Response
data: { accessToken }
Errors
400
Bad Request Error
401
Unauthorized Error