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?|

Authorization code from OAuth provider

state?|

CSRF state token

error?|

OAuth error code from provider

error_description?|

OAuth error description

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/auth/callback/string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}