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

Function encodeAuthHint

packages/react/src/multiplayer/auth-hint.tsx:52–53  ·  view source on GitHub ↗
(hint: AuthHint)

Source from the content-addressed store, hash-verified

50
51/** Encode a hint as a wire-ready cookie VALUE (URI-encoded JSON). */
52export const encodeAuthHint = (hint: AuthHint): string =>
53 encodeURIComponent(encodeAuthHintJson(hint));
54
55/** Decode a cookie VALUE back into a hint; null for anything malformed. */
56export const decodeAuthHint = (value: string | null | undefined): AuthHint | null => {

Callers 2

hintSetCookieFunction · 0.90
writeAuthHintCookieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected