@iopa-edge/jsonwebtoken

Provide native jsonwebtoken functionality in the browser and under node.js

Usage no npm install needed!

<script type="module">
  import iopaEdgeJsonwebtoken from 'https://cdn.skypack.dev/@iopa-edge/jsonwebtoken';
</script>

README

IOPA">
@iopa-edge/jsonwebtoken

NPM NPM

NPM

About

This repository contains an adapter to provide jsonwebtoken functionality when running in WebCrypto environment or under node.js using node-webcrypto-ossl polyfill

Disclaimer: This library contains encryption software that is subject to the U.S. Export Administration Regulations. You may not export, re-export, transfer or download this code or any part of it in violation of any United States law, directive or regulation. In particular this software may not be exported or re-exported in any form or on any media to Iran, North Sudan, Syria, Cuba, or North Korea, or to denied persons or entities mentioned on any US maintained blocked list.

License

MIT

Prior Art

  • Touffy/webtoken-client Basis for the parsing and verifying portions of this library
  • auth0/node-jsonwebtoken The API footprint for Node that we are aiming to replicate on the browser
  • square/js-jose Complete JWE and JWS implementation of the JWT algorithms; a bit more than we needed here
  • panvo/jose Complete JWE, JWS and JWE implementation of the JWT algorithms and used by Backstage but all done using node-crypto instead of the webcrypto

Zero dependencies

This package has zero dependencies. This is important for cryptographic operations.