@kilterset/auth0-actions-testing
Version:
Test and develop Auth0 Actions or Okta CIC Actions locally.
11 lines • 372 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.decodeJWTPayload = decodeJWTPayload;
/**
* Decodes a JWT payload without verifying signature or claims.
*/
function decodeJWTPayload(jwt) {
const [, payload] = jwt.split(".");
return JSON.parse(Buffer.from(payload, "base64url").toString());
}
//# sourceMappingURL=decode.js.map