Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "byu-jwt", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"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", |
@@ -281,2 +281,3 @@ # byu-jwt | ||
const byuJwt = require('byu-jwt'); | ||
const AuthenticationError = byuJwt.AuthenticationError; | ||
@@ -307,3 +308,10 @@ const headers = { | ||
**/ | ||
}); | ||
}) | ||
.catch(err => { | ||
if (err instanceof AuthenticationError) { | ||
// This error came from authenticate function - Respond with 401 | ||
} else { | ||
// Handle other errors | ||
} | ||
}) | ||
``` | ||
@@ -318,3 +326,3 @@ | ||
process.env.NODE_ENV = 'mock'; | ||
//to run test case capture a jwt and copy in the function invokation below. | ||
//to run test case capture a jwt and copy in the function invocation below. | ||
byuJwt.jwtDecoded('ey...gQ', 'http://the-wellknown-url.com') | ||
@@ -321,0 +329,0 @@ .then(function (jwtDecoded) { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
40986
342
0