Migrate a legacy session
Validate 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 endpoint, just like any other login method.
Body
The legacy session token to validate via the migration hook.
"legacy-session-token-abc123"
PKCE code challenge for the login flow.
"E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM"
The identifier of the dispatch from the front-end SDK.
"123e4567-e89b-12d3-a456-426614174000"
Response
OK
"eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9..."