文件名称:jwt-easy:创建,解码和验证JSON Web令牌(jwt)
文件大小:4KB
文件格式:ZIP
更新时间:2024-05-20 03:24:19
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)