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

cfaccessjwt

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfaccessjwt

Verify Cloudflare Access JWTs in a runtime agnostic way.

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

cfaccessjwt

Verify Cloudflare Access JWTs quickly and easily.

Installing

yarn add cfaccessjwt

Example

var cfaccessjwt = require('cfaccessjwt');

const accessDomain = 'https://ejjio.cloudflareaccess.com';
const aud = '9d4a635bdcc097213b4474263bb494515713df90575b6efc0ec7ace78e0a30cb';

async function verify(jwt) {
  var jwkBlob = await fetch(accessDomain + '/cdn-cgi/access/certs')
  var jwks = await jwkBlob.json()
  var auth = await cfaccessjwt.VerifyJWT(jwks, jwt, aud, accessDomain)
  return auth
}

FAQs

Package last updated on 31 Mar 2023

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