()
| 3341 | }) |
| 3342 | |
| 3343 | async 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 | |
| 3355 | export const getSession = cache(getSessionImpl) |
nothing calls this directly
no test coverage detected