Hiyve Components - v1.0.0
    Preparing search index...
    • Composes all authentication forms into a single component with automatic view transitions. An alternative to using individual form components with your own routing.

      Parameters

      Returns Element

      Key Features:

      • Automatic transitions between login, register, forgot password, TFA, reset password, and email verification views
      • Token-driven navigation — pass resetToken or verificationToken to auto-navigate to the appropriate view on mount
      • Callbacks for authentication (onAuthenticated) and registration (onRegistered)
      • Optional showRegisterLink to hide the registration option
      • Customizable labels, colors, and styles

      View transitions:

      • login → register, forgotPassword, tfa
      • register → login
      • forgotPassword → login
      • tfa → login (back)
      • resetPassword → login (on success)
      • emailVerification → login (on continue)
      <IdentityProvider apiKey="pk_live_xxx">
      <AuthFlow
      onAuthenticated={(user) => navigate('/dashboard')}
      onRegistered={(user) => console.log('Welcome!', user.email)}
      />
      </IdentityProvider>
      const params = new URLSearchParams(location.search);

      <AuthFlow
      resetToken={params.get('reset_token') || undefined}
      verificationToken={params.get('verify_token') || undefined}
      onAuthenticated={handleAuth}
      />