How to generate token for user logged?

If you use the POST https://YOUR_DOMAIN/dbconnections/change_password API endpoint, Auth0 will send the user an email with a link they can click to change their password. It’s similar to the Forgot Password link in Lock or Universal Login, but by using the API endpoint, your app can issue the password change email on demand.

Per the document I linked above:

If your application uses an interactive password reset flow using the Authentication API, make a POST call specifying the email address of the user account whose password you would like to reset in the email field. If the call is successful, the user will receive an email prompting them to change their password.