UNPKG

@southlane/cognito-jwt-verifier

Version:

Decode and verify JWT tokens issued by AWS Cognito.

14 lines (10 loc) 326 B
'use strict' 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