@auth0/auth0-react
    Preparing search index...

    Type Alias ConnectAccountRedirectResult<TAppState>

    ConnectAccountRedirectResult: CompleteResponse & {
        appState?: TAppState;
        response_type: ConnectCode;
    }

    The result returned after a successful account connection redirect.

    Combines the redirect login result (including any persisted app state) with the complete response from the My Account API.

    Type Parameters

    • TAppState = any

      The type of application state persisted through the transaction.

    Type Declaration

    • OptionalappState?: TAppState

      State stored when the redirect request was made

    • response_type: ConnectCode

      The type of response, for connect account it will be connect_code

    const result = await auth0.connectAccountWithRedirect(options);
    console.log(result.appState); // Access persisted app state
    console.log(result.connection); // The connection of the account you connected to.
    console.log(result.response_type === 'connect_code'); // The response type will be 'connect_code'