Oore CI
ReferenceAPIOperationsAuth

OIDC callback

Exchanges the authorization code for tokens and creates a session.

Operation IDoidc_callback
POST
/v1/auth/oidc/callback

Exchanges the authorization code for tokens and creates a session.

Request Body

application/json

Authorization code and state from OIDC provider

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/auth/oidc/callback" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "state": "string"  }'
{  "expires_at": 0,  "session_token": "string",  "user": {    "avatar_url": "string",    "email": "string",    "oidc_subject": "string",    "role": null,    "user_id": "string"  }}