@authdog/easyjwt

easyjwt is a library aiming to create and validate JSON Web Tokens without hussle or prerequisitie cryptography knowledge.

Usage no npm install needed!

<script type="module">
  import authdogEasyjwt from 'https://cdn.skypack.dev/@authdog/easyjwt';
</script>

README

easyjwt

Build Status codecov npm version code style: prettier bundle size

easyjwt is a nodejs library aiming to create and validate JSON Web Tokens without hussle or prerequisitie cryptography knowledge.

Install

yarn add @authdog/easyjwt

Usage

Creating a token:

Verifying a token:

Roadmap Features

  • Basic readme validation info
  • Helpers to check issuer and audiences of a given token
  • Sign/Verify HS256 token
  • Sign/Verify RS256 token
  • Sign/Verify RS384 token
  • Sign/Verify RS512 token
  • Sign/Verify PS256 token
  • Sign/Verify PS384 token
  • Sign/Verify PS512 token

Roadmap Documentation

  • Documentation End user Introduction
  • Documentation End user JWT
  • Translation foundations

Next features

  • Sign/Verify HS384 token
  • Sign/Verify ES256 token
  • Sign/Verify ES384 token
  • Sign/Verify ES512 token
  • Sign/Verify EdDSA token
  • Sign/Verify ES256K token

Dependencies

  • jsonwebtoken
  • node-jose
  • node-fetch

Changelog

  • JWT signed with a JSON Web Key can be "ad-hoc" validated
    • (22.FEB.22) verifyRSATokenWithUri has been replaced with verifyRSAToken

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Authdog

License

This project is licensed under the MIT license. See the LICENSE file for more info.