0.1.2 • Published 4 years ago

aks-verify-jwt v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Verify-JWT Token

This package will verify the authenticity of JWT in Client Side with issuer and inspired by Tymon/JWT Package.

Installation

npm i aks-verify-jwt --save

Usage

#Set the token in localstorage
const VerifyJWT = require('../index');
VerifyJWT.handleToken(token)  

#To remove token
VerifyJWT.removeToken()

#To get token from localstorage
VerifyJWT.getToken()

#Verify that token is valid
VerifyJWT.isValidToken()

Tests

npm test

Contributing

Arpan Kumar Soni