Verify the ail exists in the database.
Generate a secure token (e.g., JWT or random UUID).
Store this token in the database with:
Send a reset email with a link:
<https://yourdomain.com/reset-password?token=><secure_token>