tutti-api - v2.1.0
    Preparing search index...

    Class Session

    Per-account state and the single source of request headers. One Session = one account; construct several for several accounts.

    Index

    Constructors

    Properties

    auth?: AuthState
    language: string
    tuttiHash: string

    Accessors

    Methods

    • Tutti authenticates with the session token in X-Tutti-Auth (NOT a Bearer header — that is only used once, to mint this token via authenticateJWT).

      Returns Record<string, string>

    • Headers for every request. Called per request so auth changes apply at once.

      Returns Record<string, string>