Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

byu-jwt

Package Overview
Dependencies
Maintainers
9
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byu-jwt - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc