AdonisJS API
    Preparing search index...

    Type Alias AllowedSessionValues

    AllowedSessionValues: string | boolean | number | object | Date | any[]

    Union type of all values that can be stored in session data. These types are JSON serializable and safe for session storage.

    // All valid session values
    const stringVal: AllowedSessionValues = 'hello'
    const numberVal: AllowedSessionValues = 42
    const boolVal: AllowedSessionValues = true
    const objectVal: AllowedSessionValues = { key: 'value' }
    const dateVal: AllowedSessionValues = new Date()
    const arrayVal: AllowedSessionValues = [1, 2, 3]