Comparing version 3.1.0 to 3.1.1
@@ -194,4 +194,7 @@ /** | ||
// aud can be a string or an array: https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3 | ||
if (typeof aud === 'string' && !aud.startsWith(options.basePath)) throw new AuthenticationError('Invalid aud in JWT') | ||
if (!aud.some(audience => audience.startsWith(options.basePath))) throw new AuthenticationError('Invalid aud in JWT') | ||
if (typeof aud === 'string') { | ||
if (!aud.startsWith(options.basePath)) throw new AuthenticationError('Invalid aud in JWT') | ||
} else { | ||
if (!aud.some(audience => audience.startsWith(options.basePath))) throw new AuthenticationError('Invalid aud in JWT') | ||
} | ||
} | ||
@@ -198,0 +201,0 @@ } |
{ | ||
"name": "byu-jwt", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "The byu-jwt module provides helpful functions to retrieve a specified BYU .well-known URL and verify BYU signed JWTs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55247
894