Interface defining Custom Token Exchange operations
Auth0 Custom Token Exchange Docs
Executes RFC 8693-compliant token exchange flow
For structured error responses
For generic errors with these codes:
invalid_request
consent_required
too_many_attempts
// External IdP migration scenarioconst tokens = await auth0.customTokenExchange.exchangeToken({ subject_token_type: 'urn:external-idp:legacy', subject_token: externalIdPToken, audience: 'https://api.your-service.com', scope: 'openid profile'}); Copy
// External IdP migration scenarioconst tokens = await auth0.customTokenExchange.exchangeToken({ subject_token_type: 'urn:external-idp:legacy', subject_token: externalIdPToken, audience: 'https://api.your-service.com', scope: 'openid profile'});
Interface defining Custom Token Exchange operations
See
Auth0 Custom Token Exchange Docs