Abstract The verification options that you'll use
The issuer config that you'll use (config options are used as default verification options)
Verify multiple issuers (true) or just a single one (false)
Protected constructorOptional jwksCache: JwksCacheProtected expectedThis method loads a JWKS that you provide, into the JWKS cache, so that it is available for JWT verification. Use this method to speed up the first JWT verification (when the JWKS would otherwise have to be downloaded from the JWKS uri), or to provide the JWKS in case the JwtVerifier does not have internet access to download the JWKS
Rest ...__namedParameters: MultiIssuer extends falsevoid
Protected getOptional issuer: stringProtected getGet the verification parameters to use, by merging the issuer configuration, with the overriding properties that are now provided
Optional verifyProperties: Partial<SpecificVerifyProperties>The merged verification parameters
Verify (asynchronously) a JWT that is signed using RS256 / RS384 / RS512. This call is asynchronous, and the JWKS will be fetched from the JWKS uri, in case it is not yet available in the cache.
Rest ...__namedParameters: VerifyParameters<SpecificVerifyProperties>Promise that resolves to the payload of the JWT––if the JWT is valid, otherwise the promise rejects
Protected verifyVerify (asynchronously) an already decomposed JWT, that is signed using RS256 / RS384 / RS512.
The decomposed Jwt
The properties to use for verification
The payload of the JWT––if the JWT is valid, otherwise an error is thrown
Protected verifyVerify (synchronously) an already decomposed JWT, that is signed using RS256 / RS384 / RS512.
The decomposed Jwt
The properties to use for verification
The payload of the JWT––if the JWT is valid, otherwise an error is thrown
Verify (synchronously) a JWT that is signed using RS256 / RS384 / RS512.
Rest ...__namedParameters: VerifyParameters<SpecificVerifyProperties>The payload of the JWT––if the JWT is valid, otherwise an error is thrown
Abstract class representing a verifier for JWTs signed with RSA (e.g. RS256, RS384, RS512)
A class is used, because there is state:
When instantiating this class, relevant type parameters should be provided, for your concrete case:
Param: StillToProvide
The verification options that you want callers of verify to provide on individual verify calls