@auth0/nextjs-auth0 - v4.9.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

    Constructors

    Methods

    • 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

        Optional request cookies to check for existing transactions. When provided and enableParallelTransactions is false, will check for existing transaction cookies. When omitted, the existence check is skipped for performance optimization.

      Returns Promise<void>

      When transaction state is missing required state parameter