Email + password
The<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.
Error handling
In the case of errors from the API, or you want to do something more custom with the response, you can use theonError
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.