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

byu-jwt

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byu-jwt

The byu-jwt module provides helpful functions to retrieve a specified BYU .well-known URL and verify BYU signed JWTs.

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
269
decreased by-29.77%
Maintainers
1
Weekly downloads
 
Created
Source

byu-jwt

The byu-jwt module provides helpful functions to retrieve a specified BYU .well-known URL and verify BYU signed JWTs.

Functions

  • getWellKnown
  • getPublicKey
  • verifyJWT
  • getPublicKeyUtil

getWellKnown(wellKnownURL)

getWellKnown retrieves the response of the specified .well-known URL and if cacheWellKnowns is set to true returns the previously retrieved response in the form of a promise.

getPublicKey(wellKnownURL)

getPublicKey retrieves the PEM formatted X509 certificate

verifyJWT(jwt, wellKnownURL)

verifyJWT uses the URLs and values found from the specified .well-known URL to verify and decode the provided signed JWT.

cacheWellknowns

cacheWellknowns is a boolean variable provided to set whether to cache the response of previously requested .well-known URLs.

getPublicKeyUtil(resultFromGetWellKnown)

getPublicKeyUtil is a private reusable function the takes the result from a getWellKnown request and does the actual work of PEM formatting the X509 certificate

FAQs

Package last updated on 15 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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