AdonisJS API
    Preparing search index...

    Type Alias SessionData

    SessionData: Record<string, AllowedSessionValues>

    Shape of session data as a record of key-value pairs. The session data must be JSON serializable for persistence.

    const sessionData: SessionData = {
    userId: 123,
    username: 'john_doe',
    preferences: { theme: 'dark', language: 'en' },
    loginAt: new Date(),
    roles: ['user', 'editor']
    }