Skip to content

A thin wrapper around the jwt package for the front-end

License

Notifications You must be signed in to change notification settings

karlludwigweise/jwt

Repository files navigation

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")) {
    ...
}

About

A thin wrapper around the jwt package for the front-end

Resources

License

Stars

Watchers

Forks

Packages

No packages published