@winglibs/jwt
v0.0.9
Published
Wing library for JWT authentication
Downloads
15
Readme
jwt
A Wing library for working with JWT authentication.
Prerequisites
Installation
npm i @winglibs/jwt
Usage
bring util;
bring jwt;
test "will sign and verify" {
let id = util.nanoid();
let token = jwt.sign({ foo: id }, "shhhhh");
let decoded1 = jwt.verify(token, secret: "shhhhh");
}
License
This library is licensed under the MIT License.