UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

22 lines (21 loc) 497 B
import { Value } from "../chunk-S3NSPQ7M.mjs"; import "../chunk-NNA77YYC.mjs"; import "../chunk-SJGQU3OG.mjs"; import "../chunk-PIRWVOO2.mjs"; import "../chunk-AAND4MKF.mjs"; import "../chunk-4N72FQFX.mjs"; // src/security/Jwt.ts import { jwtDecode as decode } from "jwt-decode"; var Jwt = class _Jwt extends Value { static of = (a) => new _Jwt(a.jwt); decode = () => decode(this.value); toJSON() { return { jwt: this.value }; } }; export { Jwt }; //# sourceMappingURL=Jwt.mjs.map