Setu-TS
    Preparing search index...

    Interface JwtResolverOptions

    Options for JwtResolver.

    interface JwtResolverOptions {
        claim?: string;
        decode?: (token: string) => Record<string, unknown> | null;
        headerName?: string;
    }
    Index
    claim?: string

    JWT claim name that holds the tenant id (default 'tenant_id').

    decode?: (token: string) => Record<string, unknown> | null

    Custom JWT-decode function. When absent the plugin resolves IJwtService.decode from the capability token in register().

    headerName?: string

    Authorization header name (default 'authorization').