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

    Enumeration TokenType

    Represents the type of access token used for API authentication.

    This enum provides type-safe constants for token types returned by Auth0 and used when making authenticated API requests.

    • TokenType.bearer - Standard OAuth 2.0 Bearer token (default)
    • TokenType.dpop - Demonstrating Proof-of-Possession (DPoP) bound token
    import { TokenType } from 'react-native-auth0';

    // Check if credentials use DPoP
    if (credentials.tokenType === TokenType.dpop) {
    const headers = await auth0.getDPoPHeaders({
    url: 'https://api.example.com/data',
    method: 'GET',
    accessToken: credentials.accessToken,
    tokenType: credentials.tokenType
    });
    }
    Index

    Enumeration Members

    Enumeration Members

    bearer: "Bearer"

    Standard OAuth 2.0 Bearer token authentication. This is the default token type used by most OAuth 2.0 implementations.

    dpop: "DPoP"

    Demonstrating Proof-of-Possession (DPoP) token authentication. DPoP tokens are sender-constrained, providing additional security by cryptographically binding the token to the client.