Skip to main content

Complete a GitHub link using a code+state pair

POST 

/api/v1/auth/link-github

Finalize a GitHub OAuth link for the authenticated user.

Validates the state token against the state cookie, exchanges the code with GitHub, and stores the resulting OAuthConnection.

  • 400 if the state is invalid/expired or if the GitHub account is already linked to a different AISafe user.

Request

Responses

Successful Response