Skip to main content

Sign up

A card that creates an account. By default its button opens the hosted sign-up page.

ComponentReadyView source
Works with
ReactNext.js

Installation​

npm install @lumoauth/react

Usage​

src/pages/SignUp.tsx
import { SignUp } from '@lumoauth/react';

export default function SignUpPage() {
return <SignUp afterSignUpUrl="/welcome" signInUrl="/sign-in" />;
}

Sign-up in your own form​

The provider's authStrategy="password" shows fields for the name, the email address and the password. LumoAuth has no API that creates an account from such a form, so in @lumoauth/react 1.7.0 the button of this form throws an error. Keep the default strategy: the button opens the hosted sign-up page, which offers every method that your organization turned on.

Props​

PropTypeDescription
afterSignUpUrlstringWhere to go after sign-up. Defaults to the afterSignUpUrl of the provider.
signInUrlstringThe address of your sign-in page, for the link under the card.
appearanceAppearancePropsTheme, CSS variables and class name for this card. See Theming.