UNPKG

angular2-jwt

Version:

Helper library for handling JWTs in Angular 2+

1 lines 487 B
{"version":3,"file":"angular2-jwt-test-helpers.js","sourceRoot":"","sources":["angular2-jwt-test-helpers.ts"],"names":[],"mappings":";AAAA,yBAAgC,OAAW;IACvC,4EAA4E;IAC5E,MAAM,CAAC,GAAG,GAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,GAAC,GAAG,CAAC;AACjD,CAAC;AAHD,0CAGC","sourcesContent":["export function encodeTestToken(payload:any):string{\n //don't actually check or care about the header or signature in angular2-jwt\n return \".\"+btoa(JSON.stringify(payload))+\".\";\n}"]}