UNPKG

wasmrs-js

Version:

A JavaScript implementation of the RSocket protocol over WebAssembly.

12 lines 394 B
export function decodeClaims(buffer) { const decoded = new TextDecoder('utf-8').decode(buffer); // eslint-disable-next-line @typescript-eslint/no-unused-vars const [_header, claims] = decoded.split('.'); if (claims) { return JSON.parse(atob(claims)); } else { throw new Error('invalid module, no claims found'); } } //# sourceMappingURL=claims.js.map