UNPKG

@southlane/cognito-jwt-verifier

Version:

Decode and verify JWT tokens issued by AWS Cognito.

10 lines (7 loc) 203 B
'use strict' function requireString(value, name) { if (typeof value !== 'string' || !value) { throw new TypeError(`"${name}" must be a non-empty string`) } } module.exports = { requireString }