Package Exports
- jwt-check-expiry
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jwt-check-expiry) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
jwt-check-expiry
Purpose
Check weather JWT is expired in the client without requiring a secret.
Installation
npm i jwt-check-expiry
or
yarn add jwt-check-expiry
Usage
import isJwtTokenExpired, { decode } from 'jwt-check-expiry';
console.log('isExpired is:', isJwtTokenExpired('<your-jwt-token>'));
console.log('Decoded token :', decode('<your-jwt-token>'));