MCP Gateway
ApiAuthentication

Handle OAuth callback

Exchange the authorization code for tokens, find or create the user, and set authentication cookies. Handles both normal and invitation-based signup.

GET
/api/v1/auth/callback/{provider}

Path Parameters

provider*string

Query Parameters

code*string

Authorization code from OAuth provider

state*string

CSRF state token

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/auth/callback/string?code=string&state=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}