Sudoo-JWT-Web

Build Status codecov npm version downloads

:clap: 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