check JWT is expired or not.
npm install jwt-check-expirynpm i jwt-check-expiry
yarn add jwt-check-expiry
js
import isJwtTokenExpired, { decode } from 'jwt-check-expiry';
console.log('isExpired is:', isJwtTokenExpired(''));
console.log('Decoded token :', decode(''));
``