jwt-easy:创建,解码和验证JSON Web令牌(jwt)

时间:2021-04-30 09:37:39
【文件属性】:
文件名称:jwt-easy:创建,解码和验证JSON Web令牌(jwt)
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-30 09:37:39
JavaScript Jwt easy-Json Web令牌实用程序 如何使用它? 基本用法 [Jwt()] const Jwt = require('jwt-easy') let payload = { username: 'charliejuc', exp: 1 * 60 * 1000 //Time or date in milliseconds } let secret = 'My secret key to encrypt jwt' let options = { secret: secret, ttl: true /* If ttl is true, payload.exp will be interpreted as the time to live in milliseconds, otherwise payload.exp will be a
【文件预览】:
jwt-easy-master
----LICENSE(747B)
----README.md(2KB)
----.gitignore(13B)
----index.js(4KB)
----package.json(823B)

网友评论