1.0.6 • Published 2 years ago

@kav3/jwt v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago