Documents for @litert/jwt / Validators/Issuer / IIssuerValidationOptions
Interface: IIssuerValidationOptions
Defined in: src/lib/Validators/Issuer.ts:25
The options for JwtIssuerValidator.
Properties
allowlist
allowlist: (
string|RegExp| (iss) =>boolean)[]
Defined in: src/lib/Validators/Issuer.ts:35
The allowlist of issuers, the elements can be:
- A string: the
issclaim must be exactly the same as this string. - A RegExp: the
issclaim must match this regular expression. - A function: the function will be called with the
issclaim as the only argument, and should return true if the issuer is allowed, or false otherwise.
claimRequired?
optionalclaimRequired:boolean
Defined in: src/lib/Validators/Issuer.ts:42
Whether the iss claim is required.
Default
ts
truecustomName?
optionalcustomName:string
Defined in: src/lib/Validators/Issuer.ts:49
A custom name for this validator.
Default
ts
'JwtIssuerValidator'