Athena

Auth Callback

Provider callback method and route mapping.

Endpoints and Methods

  • auth.callback.provider({ provider, code, state }) -> GET /callback/{provider} with required query params code and state

Example

import { client } from "./auth-client";

await client.auth.callback.provider({
  provider: "github",
  code: "oauth_authorization_code",
  state: "oauth_state_value",
});

OpenAPI Contract

GET
/callback/{provider}

Authorization

apiKeyCookie bearerAuth
apiKeyCookie<token>

API Key authentication via cookie

In: cookie

AuthorizationBearer <token>

Bearer token authentication

In: header

Path Parameters

provider*string

Query Parameters

code*string
state*string

Response Body

application/json

curl -X GET "http://localhost:3001/api/auth/callback/string?code=string&state=string"
{
  "token": "string",
  "user": {}
}