React Native Auth0 - v5.5.0
    Preparing search index...

    Interface CustomTokenExchangeParameters

    Parameters for Custom Token Exchange (RFC 8693). Exchanges an external identity provider token for Auth0 tokens.

    Custom Token Exchange allows you to exchange tokens from external identity providers for Auth0 tokens. The external token must be validated in Auth0 Actions using cryptographic verification.

    interface CustomTokenExchangeParameters {
        subjectToken: string;
        subjectTokenType: string;
        audience?: string;
        scope?: string;
        organization?: string;
    }
    Index

    Properties

    subjectToken: string

    The external token to be exchanged for Auth0 tokens. Must be validated in Auth0 Actions using cryptographic verification.

    subjectTokenType: string

    The type identifier for the subject token being exchanged.

    Must be a unique profile token type URI starting with https:// or urn:.

    Valid patterns:

    • urn:yourcompany:token-type - Company-specific URN (recommended)
    • https://yourcompany.com/tokens/custom - HTTPS URL under your control

    Reserved namespaces (forbidden):

    • http://auth0.com/*, https://auth0.com/*
    • http://okta.com/*, https://okta.com/*
    • urn:ietf:*, urn:auth0:*, urn:okta:*
    "urn:acme:legacy-system-token" // Custom legacy token
    
    "https://yourcompany.com/tokens/partner-jwt" // Custom HTTPS identifier
    
    audience?: string

    The target audience for the requested Auth0 token. Must match an API identifier configured in your Auth0 tenant.

    scope?: string

    Space-separated list of OAuth 2.0 scopes.

    "openid profile email"
    
    organization?: string

    Organization ID or name for authenticating in an organization context. When provided, the organization ID will be present in the access token.