MCPcopy Index your code
hub / github.com/simstudioai/sim / getSessionImpl

Function getSessionImpl

apps/sim/lib/auth/auth.ts:3343–3353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3341})
3342
3343async function getSessionImpl() {
3344 if (isAuthDisabled) {
3345 await ensureAnonymousUserExists()
3346 return createAnonymousSession()
3347 }
3348
3349 const hdrs = await headers()
3350 return await auth.api.getSession({
3351 headers: hdrs,
3352 })
3353}
3354
3355export const getSession = cache(getSessionImpl)

Callers

nothing calls this directly

Calls 3

createAnonymousSessionFunction · 0.90
headersFunction · 0.50

Tested by

no test coverage detected