dorongrinstein-jwt-verifier

A JWT verifier, specific for a Concur architecture demo

Usage no npm install needed!

<script type="module">
  import dorongrinsteinJwtVerifier from 'https://cdn.skypack.dev/dorongrinstein-jwt-verifier';
</script>

README

dorongrinstein-jwt-verifier is a small library that helps decode and verify JWTs which are Base64Url encoded.

IMPORTANT: This library is meant for demonstration purpose only in the context of an architecture paper. It should not be used for production.

Installation

npm install dorongrinstein-jwt-verifier [--save]

Usage

var token = 'jwt token base64 string goes here';

var jwtVerifier = new (require('dorongrinstein-jwt-verifier'))();
jwtVerifier.verify(token, function(decoded) {
  console.log(decoded);
}

Author

~dorongrinstein

License

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