React Native Auth0 - v5.5.0
    Preparing search index...

    Interface IWebAuthProvider

    Defines the contract for a provider that handles web-based authentication flows, such as redirecting to the Auth0 Universal Login page.

    interface IWebAuthProvider {
        authorize(
            parameters: WebAuthorizeParameters,
            options?: NativeAuthorizeOptions | WebAuthorizeOptions,
        ): Promise<Credentials>;
        handleRedirectCallback(): Promise<void>;
        clearSession(
            parameters?: ClearSessionParameters,
            options?: NativeClearSessionOptions | WebClearSessionOptions,
        ): Promise<void>;
        getWebUser(): Promise<User | null>;
        checkWebSession(): Promise<void>;
        cancelWebAuth(): Promise<void>;
    }
    Index

    Methods

    • Handles the redirect callback after authentication.

      Returns Promise<void>

      A promise that resolves when the redirect callback has been processed.

      Platform specific: This method is only available in the context of a web application.

    • Retrives the authenticated user's profile information.

      Returns Promise<User | null>

      A promise that resolves with the user's profile information, or null if not authenticated.

      This method fetches the user's profile from the Auth0 session if available.

    • Cancels an ongoing web authentication transaction.

      Returns Promise<void>

      A promise that resolves when the operation is complete.

      Platform specific: This is primarily used on iOS to handle scenarios where the user manually dismisses the login modal. On other platforms, it may be a no-op.