POST

/api/auth/github/callback

GitHub OAuth callback

Exchanges a GitHub OAuth authorization code for a session token.

curl -s -X POST "$BASE/api/auth/github/callback" \
  -H "Content-Type: application/json" \
  -d '{"code": "github_auth_code_here"}'

请求体

FieldTypeReqDefaultDescription
codestringYGitHub OAuth authorization code

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test