Skip to main content
POST
Exchange an external authentication token

Body

application/json
provider_id
enum<string>
required

The external authentication integration that issued the token.

Available options:
clerk-integration,
better-auth-integration,
workos-integration
Example:

"clerk-integration"

token
string
required

The provider's signed session token (a JWT). It must contain sub, sid and exp claims.

Example:

"<external-provider-jwt>"

Response

200 - application/json

Successful response

access_token
string
required
session_id
string
required
user_id
string
required
is_new_user
boolean
required