I want to have the registered user set a password without setting a password using the user registration API

Hello.
I’m thinking of developing a full stack web app using nuxt.js on the front end, Laravel on the back end, and Auth0 for authentication.

For login, I will use Universal Login, but I am thinking of registering users by calling the API.
I would like the password to be entered by the registered user, but when I checked the API documentation, I found that “password” exists in the request parameter and is required.
https://auth0.com/docs/api/authentication#signup
Does this mean that I always have to set a password when executing the user registration API?

What I was thinking was

  1. Execute user registration using API (do not enter password)
  2. Send a link to set a password to the registered email address
    3.The link will take you to a password entry screen, and the user will enter the password to complete registration.

I was thinking of developing something like this, is it possible?

Hi @r.oabwras.evu,

Welcome to the Auth0 Community!

Yes, that is correct. You must specify a password when creating a user using the Management API.

In this use case, I recommend repurposing a change password email template to become an email invitation and submitting a change password request for the user after you have created them. This way, they can set their own passwords after you create them.

Please refer to our Send Email Invitations for Application Signup documentation.

Let me know if you have any questions.

Cheers,
Rueben

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.