@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
1 lines • 647 B
Source Map (JSON)
{"version":3,"sources":["../../src/security/Jwt.ts"],"sourcesContent":["import { jwtDecode as decode } from 'jwt-decode';\nimport { Json } from '../types/Json';\nimport {Value} from \"../types/Value\";\n\nexport class Jwt extends Value {\n static of = (a: { jwt: string }): Jwt => new Jwt(a.jwt);\n\n decode = (): Json => decode(this.value);\n\n toJSON(): Json {\n return { jwt: this.value };\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,aAAa,cAAc;AAI7B,IAAM,MAAN,MAAM,aAAY,MAAM;AAAA,EAC7B,OAAO,KAAK,CAAC,MAA4B,IAAI,KAAI,EAAE,GAAG;AAAA,EAEtD,SAAS,MAAY,OAAO,KAAK,KAAK;AAAA,EAEtC,SAAe;AACb,WAAO,EAAE,KAAK,KAAK,MAAM;AAAA,EAC3B;AACF;","names":[]}