MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / decodeAuthHint

Function decodeAuthHint

packages/react/src/multiplayer/auth-hint.tsx:56–59  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

54
55/** Decode a cookie VALUE back into a hint; null for anything malformed. */
56export const decodeAuthHint = (value: string | null | undefined): AuthHint | null => {
57 if (!value) return null;
58 return decodeUriComponentOption(value).pipe(Option.flatMap(decodeAuthHintJson), Option.getOrNull);
59};
60
61// ── Browser-side cookie maintenance (AuthProvider) ───────────────────────────
62

Callers 2

resolveAuthHintFunction · 0.90
readAuthHintCookieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected