taxum
    Preparing search index...

    Type Alias JwtConfig

    Configuration options for handling JSON Web Tokens (JWTs).

    type JwtConfig = {
        allowUnauthorized?: boolean;
        debug?: boolean;
        key: CryptoKey | KeyObject | JWK | Uint8Array;
        verifyOptions?: JWTVerifyOptions | (() => JWTVerifyOptions);
    }
    Index

    Properties

    allowUnauthorized?: boolean

    Whether to allow unauthorized users to pass through.

    debug?: boolean

    When enabled, the HTTP response will contain concrete error information.

    You should not enable this in production!

    key: CryptoKey | KeyObject | JWK | Uint8Array

    Key used for verifying incoming JWTs.

    verifyOptions?: JWTVerifyOptions | (() => JWTVerifyOptions)

    Options used to verify JWTs.