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.
请求
code and redirectUri from GitHub callback
code
redirectUri
响应
data: { accessToken }
错误
400
Bad Request Error
401
Unauthorized Error