• Get a specific key from the session. If you need multiple keys from the session, it's better to use getAll instead.

    Parameters

    • key: string

      Name of the key to get

    • Optional defaultValue: any = undefined

      Value to return if the key does not exist or returns empty. (Default: undefined)

    Returns any

    Returns the value of the key, or the specified default value

Generated using TypeDoc