1.0.6 • Published 3 years ago

@kav3/jwt v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

JWT

ES6 Compatible JWT Module

Install

$ npm install @kav3/jwt

Usage

import { encode, decode, random } from  '@kav3/jwt'
random().then(SECRET_KEY => {
const token = encode({a:1, b:2}, SECRET_KEY)
console.log("SECRET_KEY: ", SECRET_KEY)
console.log("token: ", token)
console.log("payload: ", decode(token, SECRET_KEY))
})
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago