MCPcopy Create free account
hub / github.com/TanStack/router / getAppSession

Function getAppSession

e2e/solid-start/basic-auth/src/utils/session.ts:9–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9export function getAppSession() {
10 return getIronSession<SessionUser>(
11 { read: getCookie, write: setCookie },
12 {
13 cookieName: 'test-auth-session',
14 // This fixture only runs locally with test credentials.
15 password: 'local-e2e-only-session-password-at-least-32-characters',
16 ttl: 60 * 60,
17 cookieOptions: {
18 httpOnly: true,
19 secure: false,
20 sameSite: 'lax',
21 path: '/',
22 },
23 },
24 )
25}

Callers 4

signup.tsxFile · 0.90
logout.tsxFile · 0.90
_authed.tsxFile · 0.90
__root.tsxFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected