Hex Core JWT library.
npm i @hex-insights/jwt
This package requires Base64 encoding/decoding and uses either the atob and bota functions defined on the window in browser(-like) environments or the global Buffer object in Node environments (e.g. server or frontend dev server). One of these must be defined in order for this package to function.
If neither of these is available by default, the Buffer object can be defined manually by importing the buffer package and setting the value of global.Buffer to the Buffer exported by the buffer package.
For example:
import ReactDOM from "react-dom";
import { Buffer } from "buffer/";
import { App } from "./App";
global.Buffer = global.Buffer ?? Buffer;
ReactDOM.render( , document.querySelector("#root"));