Closed koistya closed 2 years ago
JWT
import { jwt } from "web-auth-library"; jwt.decode("eyJ0eXAiOiJKV1QiLC..."); // => { // header: { alg: "HS256", typ: "JWT" }, // payload: { iss: "...", aud: "...", iat: ..., exp: ... }, // signature: "xxx" // } jwt.decode("eyJ0eXAiOiJKV1QiLC...", { header: false, signature: false }); // => { // payload: { iss: "...", aud: "...", iat: ..., exp: ... }, // }
Decoding a
JWT
token