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

Function hintSetCookie

apps/cloud/src/auth/doc-gate.ts:184–185  ·  view source on GitHub ↗
(hint: AuthHint)

Source from the content-addressed store, hash-verified

182};
183
184const hintSetCookie = (hint: AuthHint) =>
185 `${AUTH_HINT_COOKIE}=${encodeAuthHint(hint)}; ${HINT_COOKIE_ATTRIBUTES}; Max-Age=${AUTH_HINT_MAX_AGE_SECONDS}`;
186
187const sessionSetCookie = (sealed: string) =>
188 `${SESSION_COOKIE}=${sealed}; ${SESSION_COOKIE_ATTRIBUTES}; Max-Age=${SESSION_MAX_AGE}`;

Callers 1

doc-gate.tsFile · 0.85

Calls 1

encodeAuthHintFunction · 0.90

Tested by

no test coverage detected