user clicks submit on registration form, request is made to our external api
external api creates a user in our local db and an auth0 user
response comes back successfully
At this point, we want to have our users logged in automatically so they don’t have to take an extra step after registration. How would we go about doing this?
The nextjs-auth0 sdk doesn’t appear to have any login method on it. Would we use something like this or a POST request to the auth0 api to use the form’s username/password to authenticate?
When doing so, the user is only created but never inputs their credentials to login. Moreover, there isn’t any way to log the user in without prompting for credentials.
With that, allow me to offer an alternative solution that may work for you.
First, I recommend using the Universal Login experience, so that your users have a centralized login experience. Let me emphasize that users are automatically logged in after signing up when using the Universal Login experience.
Then, to collect additional information from your users, there are two ways to accomplish this, namely: