How to make a user created with API login immediately after creation without using New Univasal Login

I am using the PHP framework Symfony 5.4. My situation is to create a user with Email and Password using ManagementAPI.

[Steps]
(1) Email is input by the user (in my system)
(2) My system tests if the Email is available and at the same time sends the URL for this registration.
(3) The user clicks on the link.
My system confirms that the email is correct and automatically creates a strong password and registers the user through ManagementAPI.

(4) My system automatically creates a strong password and registers the user through ManagementAPI. Therefore, the user does not know the password. My wish is to let the user log in once. Is this possible?

The procedure on this web site is close. (Sorry, the site is in Japanese.)

My site was created with the PHP framework Symfony, and I used this URL as a reference.

:smiling_face_with_tear: