MCPcopy Create free account
hub / github.com/dailydotdev/apps / decodeJwtPart

Function decodeJwtPart

packages/webapp/lib/agentMarkdownAccess.ts:29–30  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

27};
28
29const decodeJwtPart = <T>(value: string): T =>
30 JSON.parse(new TextDecoder().decode(decodeBase64Url(value))) as T;
31
32type MarkdownTokenPayload = {
33 aud?: unknown;

Callers 1

Calls 1

decodeBase64UrlFunction · 0.85

Tested by

no test coverage detected