Exchange GitHub OAuth code for access token

以 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.

请求

code and redirectUri from GitHub callback
codestring必需
redirectUristring必需

响应

data: { accessToken }

错误

400
Bad Request Error
401
Unauthorized Error