@southlane/cognito-jwt-verifier
Version:
Decode and verify JWT tokens issued by AWS Cognito.
14 lines (10 loc) • 326 B
JavaScript
class JwtVerificationError extends Error {
constructor(originalError) {
super(`JWT verification failed: ${originalError.message}`)
this.name = this.constructor.name
this.originalError = originalError
Error.captureStackTrace(this, this.constructor)
}
}
module.exports = JwtVerificationError