Home / Type/ BaseSessionConfig Type — astro Architecture

BaseSessionConfig Type — astro Architecture

Architecture documentation for the BaseSessionConfig type/interface in types.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a2ff614c_79ff_ab93_04a2_da96159c70b5["BaseSessionConfig"]
  8a043672_fcb4_880f_4008_7ebf53cfff0a["types.ts"]
  a2ff614c_79ff_ab93_04a2_da96159c70b5 -->|defined in| 8a043672_fcb4_880f_4008_7ebf53cfff0a
  style a2ff614c_79ff_ab93_04a2_da96159c70b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/session/types.ts lines 27–42

export interface BaseSessionConfig {
	/**
	 * Configures the session cookie. If set to a string, it will be used as the cookie name.
	 * Alternatively, you can pass an object with additional options.
	 */
	cookie?:
		| string
		| (Omit<AstroCookieSetOptions, 'httpOnly' | 'expires' | 'encode'> & {
				name?: string;
		  });

	/**
	 * Default session duration in seconds. If not set, the session will be stored until deleted, or until the cookie expires.
	 */
	ttl?: number;
}

Frequently Asked Questions

What is the BaseSessionConfig type?
BaseSessionConfig is a type/interface in the astro codebase, defined in packages/astro/src/core/session/types.ts.
Where is BaseSessionConfig defined?
BaseSessionConfig is defined in packages/astro/src/core/session/types.ts at line 27.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free