Protected 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 by Amazon Cognito. 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: CognitoVerifyParameters<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 by Amazon Cognito.
Rest ...__namedParameters: CognitoVerifyParameters<SpecificVerifyProperties>The payload of the JWT––if the JWT is valid, otherwise an error is thrown
Static createCreate a Cognito JWT verifier for a single User Pool
The verification properties for your User Pool
Optional additionalProperties: { Additional properties
Overriding JWKS cache that you want to use
An Cognito JWT Verifier instance, that you can use to verify Cognito signed JWTs with
Create a Cognito JWT verifier for multiple User Pools
Optional additionalProperties: { Additional properties
Overriding JWKS cache that you want to use
An Cognito JWT Verifier instance, that you can use to verify Cognito signed JWTs with
Static parse
Class representing a verifier for JWTs signed by Amazon Cognito