Documents for @litert/jwt / ManagedApis/Verifier / IJwtVerifierOptions
Interface: IJwtVerifierOptions<T>
Defined in: src/lib/ManagedApis/Verifier.ts:25
The options for JWT verifier.
Type Parameters
T
T extends IJwtValidator | IJwtAsyncValidator
Properties
validators
validators:
T[]
Defined in: src/lib/ManagedApis/Verifier.ts:39
The list of validators to be used during verification.
Each validator will be executed in the order they are provided, once a validator fails, the verification process will stop.
When the verification fails, the error.context.validator will be set to the name of the validator that failed.
If empty, an exception will be thrown during the construction of the verifier.