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

    Interface RedirectLoginOptions<TAppState>

    interface RedirectLoginOptions<TAppState = AppState> {
        appState?: TAppState;
        authorizationParams?: AuthorizationParams;
        fragment?: string;
        openUrl?: (url: string) => void | Promise<void>;
    }

    Type Parameters

    Hierarchy

    • Omit<SPARedirectLoginOptions<TAppState>, "onRedirect">
      • RedirectLoginOptions
    Index

    Properties

    appState?: TAppState

    Used to store state before doing the redirect

    authorizationParams?: AuthorizationParams

    URL parameters that will be sent back to the Authorization Server. This can be known parameters defined by Auth0 or custom parameters that you define.

    fragment?: string

    Used to add to the URL fragment before redirecting

    openUrl?: (url: string) => void | Promise<void>

    Used to control the redirect and not rely on the SDK to do the actual redirect.

    const client = new Auth0Client({
    openUrl(url) {
    window.location.replace(url);
    }
    });
    import { Browser } from '@capacitor/browser';

    const client = new Auth0Client({
    async openUrl(url) {
    await Browser.open({ url });
    }
    });