1.0.2 • Published 3 years ago
@klw/jwt v1.0.2
jwt
A very thin wrapper around the jsonwebtoken
package with useJwt()
for the front-end.
Usage
yarn add @klw/jwt
import { useJwt } from "@klw/jwt";
const jwt = useJwt();
const data = jwt.decode(token);
if (data && data.hasOwnProperty("permissions")) {
...
}
1.0.2
3 years ago