Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/utils/cookies.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/utils/cookies.ts |
| Original SHA-256 | 31ff57f32d76e4f7f3c34b95fe5791695186cb2a0cd664e8f2db03d344361700 |
| Git blob SHA | 50bbd825b4dbfbeb0ab8d413a47b0d43ebc36e1e |
| Reading-copy SHA-256 | 31ff57f32d76e4f7f3c34b95fe5791695186cb2a0cd664e8f2db03d344361700 |
Recovered source transcript
Download complete source text ↓33 lines · 0.7 KB
/**
* Cookie names used across the application
* Centralized to avoid duplication and ensure consistency
*/
export const COOKIE_NAMES = {
// Theme
COLOR_THEME: 'theme',
// Preferences
LANGUAGE: 'language'
} as const
/**
* Cookie options configuration
* Default options that can be used when setting cookies
*/
export const COOKIE_OPTIONS = {
// Session cookie options (expires when browser closes)
SESSION: {
httpOnly: true,
secure: true,
sameSite: 'lax' as const,
path: '/'
},
// Client-side accessible cookies (for theme, language, etc.)
CLIENT: {
secure: true,
sameSite: 'lax' as const,
path: '/'
}
} as const