Sudoo-JWT-Web

Continuous Integration codecov npm version downloads

JWT implementation for Web

Install

yarn add @sudoo/jwt-web
# Or
npm install @sudoo/jwt-web --save

Usage

import { JWTToken } from "@sudoo/jwt-web";

const token: JWTToken<Header, Body> = JWTToken.fromToken(rawToken);

token.header; // Header
token.body; // Body
token.signature; // Signature

token.stringify(); // Re-encode token