Skip to content

ahl5esoft/lite-ts-jwt

Repository files navigation

Version

安装

npm install lite-ts-jwt

使用

import { JwtCrypto } from 'lite-ts-jwt';

const jwt = new JwtCrypto('xxx');
const token = await jwt.encrypt(JSON.stringify({a:'b'}));
// token = 'xxxx-xxx.xxx'

const data = await jwt.decrypt(token);
// data = "{'a':'b'}";

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published