@auth0/nextjs-auth0 - v4.29.0
    Preparing search index...

    Class TransactionStore

    TransactionStore is responsible for storing the state required to successfully complete an authentication transaction. The store relies on encrypted, stateless cookies to store the transaction state.

    Index
    • Parameters

      • resCookies: ResponseCookies
      • state: string

      Returns Promise<void>

    • Deletes all transaction cookies based on the configured prefix.

      Parameters

      • reqCookies: RequestCookies
      • resCookies: ResponseCookies

      Returns Promise<void>

    • Saves the transaction state to an encrypted cookie.

      Parameters

      • resCookies: ResponseCookies

        The response cookies object to set the transaction cookie on

      • transactionState: TransactionState

        The transaction state to save

      • OptionalreqCookies: RequestCookies | ReadonlyRequestCookies

        Optional request cookies. When provided, enables FIFO eviction of accumulated transaction cookies (capped at MAX_TRANSACTION_COOKIE_BYTES) before writing the new cookie.

      Returns Promise<void>

      When transaction state is missing required state parameter