Login Finalize
Finalize login
Finalize a login flow by exchanging a challenge token for session tokens (access + refresh).
POST
Finalize login
Body
application/json
The challenge token obtained from a login method.
Example:
"eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9..."
PKCE code verifier matching the code_challenge originally sent
on the login flow (OAuth, standalone OTP, or migration).
Required when the challenge token carries a pkce_challenge
claim; ignored otherwise.
Example:
"dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
Previous
Migrate a legacy sessionValidate a legacy session token via the customer's configured migration hook,
create the user if needed, and return a login challenge token. This endpoint
requires a migration configuration to be set up for the application.
The returned challenge token can be finalized using the
[Finalize login](/session/api-reference/frontend/finalize-login) endpoint,
just like any other login method.
Next
Finalize login