Setu-TS
    Preparing search index...

    Interface JwtOptions

    JWT configuration options.

    0.1.0

    interface JwtOptions {
        accessTokenRevocationStore?: IAccessTokenRevocationStore;
        algorithm?: "HS256" | "RS256";
        audience?: string;
        header?: string;
        issuer?: string;
        privateKey?: string;
        publicKey?: string;
        scheme?: string;
        secret?: string | Uint8Array<ArrayBufferLike>;
    }
    Index
    accessTokenRevocationStore?: IAccessTokenRevocationStore

    Optional shared store that rejects revoked typed access credentials. Supply the same instance to RefreshTokenService for logout invalidation.

    algorithm?: "HS256" | "RS256"

    Algorithm to use. Inferred from key material if omitted.

    audience?: string

    Expected audience for verification.

    header?: string

    Header name for token extraction (default: 'authorization').

    issuer?: string

    Expected issuer for verification.

    privateKey?: string

    Private key for RS256 signing (PEM format). Required if HS256 secret not provided.

    publicKey?: string

    Public key for RS256 verification (PEM format). Required for RS256 verification.

    scheme?: string

    Token scheme prefix (default: 'bearer').

    secret?: string | Uint8Array<ArrayBufferLike>

    Secret key for HS256 algorithm. Required if RS256 keys not provided.