MonoCloud Authentication SDK
    Preparing search index...

    Function ProcessCallback

    • <ProcessCallback/> completes a pending sign-in or sign-out callback on the current URL and synchronizes the authentication state.

      Render it on the dedicated route that MonoCloud redirects back to (for example, /callback) and disable automatic processing on the provider with autoProcessCallback={false}. It renders no UI of its own beyond the optional loading, error, and children slots. Navigation after a successful callback is controlled by the provider-level postCallback option, not by this component.

      Parameters

      Returns ReactNode

      The loading, error, or children content depending on the processing state.

      "use client";

      import { ProcessCallback } from "@monocloud/auth-react";

      export default function Callback() {
      return (
      <ProcessCallback
      loading={<p>Completing sign in…</p>}
      error={(err) => <p>Sign in failed: {err.message}</p>}
      />
      );
      }