MCPcopy
hub / github.com/CodebuffAI/codebuff / getSessionTokenFromCookies

Function getSessionTokenFromCookies

freebuff/web/src/app/onboard/_db.ts:118–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118export async function getSessionTokenFromCookies(): Promise<
119 string | undefined
120> {
121 const cookieStore = await cookies()
122 return (
123 cookieStore.get('authjs.session-token')?.value ??
124 cookieStore.get('__Secure-next-auth.session-token')?.value ??
125 cookieStore.get('next-auth.session-token')?.value
126 )
127}
128
129export async function createCliSession(
130 userId: string,

Callers 1

OnboardFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected