oidc-caep-client
    Preparing search index...

    Class TokenSet

    Immutable-ish holder for a token endpoint response. Serializable via toJSON()/TokenSet.from().

    Index
    • Parameters

      • tokens: Record<string, any>

        Token endpoint response (snake_case), optionally with expires_at (epoch seconds).

      • Optionalclaims: Record<string, any>

        Validated ID token claims, if an ID token was issued.

      Returns TokenSet

    access_token: string
    claims: Record<string, any> | undefined

    The validated ID token's claims.

    expires_at: number | undefined

    Epoch seconds when the access token expires.

    id_token: string | undefined
    issued_at: number | undefined

    Epoch seconds when the tokens were issued.

    refresh_token: string | undefined
    scope: string | undefined
    token_type: string

    'Bearer' or 'DPoP'.

    • Skew to apply for early renewal, capped at half the token lifetime so short-lived tokens aren't considered expired the moment they're issued.

      Parameters

      • skewSec: number

      Returns number