Learn how to use the Nile Auth Sign Up component
<SignUpForm />
will create a new user in your database and create a session for them. Uses simple <Email />
and <Password />
fields, along with the useSignUp()
hook. In most cases, you want to supply a callbackUrl
, which is where the user will be redirected upon successful sign up and sign in.
onError
and onSuccess
callbacks.
Note that redirect
is set to the current page by default, so you may want to set it to false
if you want
to handle the redirect yourself - especially if you want to display a custom error message.