qfetch
    Preparing search index...

    Token credentials returned by a TokenProvider.

    Contains both the access token value and its type (authorization scheme), allowing full control over the Authorization header format.

    const token: AuthorizationToken = {
    accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    tokenType: "Bearer"
    };
    // Results in header: "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
    type AuthorizationToken = {
        accessToken: string;
        tokenType: string;
    }
    Index

    Properties

    accessToken: string

    The credential value to include in the Authorization header.

    This is the actual token string (e.g., JWT, API key, base64-encoded credentials).

    tokenType: string

    The authorization scheme (e.g., "Bearer", "Basic", "Token").

    Combined with accessToken to form the header value: <tokenType> <accessToken>.