lite-ts-jwt
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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'}";

Readme

Keywords

Package Sidebar

Install

npm i lite-ts-jwt

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0

Unpacked Size

40.9 kB

Total Files

9

Last publish

Collaborators

  • ahl5esoft