This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jwkToPem from 'jwk-to-pem'; | |
import jwt, {JwtPayload, VerifyCallback, VerifyOptions} from 'jsonwebtoken'; | |
import {AppConfig} from '../AppConfig'; | |
import JsonWebTokenException from '../../exception/JsonWebTokenException'; | |
export class CognitoJWTVerifier { | |
/* | |
This is application config object having all cognito params. | |
*/ |