A Wing library for working with JWT authentication.
npm i @winglibs/jwt
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");
}
This library is licensed under the MIT License.