MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / getAnonymousId

Function getAnonymousId

packages/web/src/lib/anonymousId.ts:35–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 * Returns undefined if no anonymous ID has been set.
34 */
35export const getAnonymousId = async (): Promise<string | undefined> => {
36 const cookieStore = await cookies();
37 return cookieStore.get(ANONYMOUS_ID_COOKIE_NAME)?.value;
38};

Callers 3

auth.tsFile · 0.90
isOwnerOfChatFunction · 0.90
claimAnonymousChatsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected