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

    Type Alias OnCallbackContext

    type OnCallbackContext = {
        anonymousSessionLinked?: boolean;
        appBaseUrl?: string;
        challengeMode?: "redirect" | "popup";
        connectedAccount?: CompleteConnectAccountResponse;
        responseType?: RESPONSE_TYPES;
        returnTo?: string;
    }
    Index
    anonymousSessionLinked?: boolean

    True if an active anonymous session was linked at login time (digest-bound cookie matched at callback). False if a link was attempted but the anonymous cookie was missing or failed digest verification (session-fixation check). When false, the app SHOULD NOT treat the anonymous session as successfully linked. When true, onCallback hook can trigger migration logic (e.g., move cart to authenticated user).

    appBaseUrl?: string

    The resolved base URL for the current request, used to build safe redirects.

    challengeMode?: "redirect" | "popup"

    The return strategy for this callback flow.

    • 'redirect' (default): Standard OAuth redirect flow
    • 'popup': Popup flow returning via window.postMessage Hook authors can use this to detect popup flows and adapt behavior.
    connectedAccount?: CompleteConnectAccountResponse

    The connected account information when the responseType is RESPONSE_TYPES.CONNECT_CODE

    responseType?: RESPONSE_TYPES

    The type of response expected from the authorization server. One of RESPONSE_TYPES

    returnTo?: string

    The URL or path the user should be redirected to after completing the transaction.