createSession() — astro Function Reference
Architecture documentation for the createSession() function in session-data.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 50194c42_7730_ad3c_84be_52db01c2c5ea["createSession()"] 3892f242_f1af_26c4_ca80_60281dd4809f["session-data.ts"] 50194c42_7730_ad3c_84be_52db01c2c5ea -->|defined in| 3892f242_f1af_26c4_ca80_60281dd4809f style 50194c42_7730_ad3c_84be_52db01c2c5ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/types/session-data.ts lines 14–27
function createSession() {
return new AstroSession({
cookies: defaultMockCookies as unknown as AstroCookies,
config: {
driver: 'memory',
cookie: 'test-session',
ttl: 60,
options: {},
},
runtimeMode: 'production',
driverFactory: null,
mockStorage: null,
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createSession() do?
createSession() is a function in the astro codebase, defined in packages/astro/test/types/session-data.ts.
Where is createSession() defined?
createSession() is defined in packages/astro/test/types/session-data.ts at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free