Authentication

Complete GitHub OAuth login

Public. Exchanges the GitHub code for account tokens after verifying the signed state. Sets an httpOnly refreshToken cookie and returns a short-lived accessToken plus the public user profile.

post/api/v1/auth/github/callback

Request

  • Base URL: https://api.skills-hub.ai
  • URL: https://api.skills-hub.ai/api/v1/auth/github/callback
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization

Response

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

accessTokenstring required

Short-lived JWT access token.

expiresIninteger required

Access token lifetime in seconds.

Example response

{
  "expiresIn": 900
}

Changes

No recorded changes to this operation across all 1 revision of this API.