make this forget password flow , my .env file code is : NEXT_PUBLIC_BACKEND_URL=http://localhost:5001/api/v1
my forgot api is: {{baseURL}}/user/forget-password & body is: { "email": "nurmohammad0605@gmail.com" }
& verify otp api is: {{baseURL}}/user/verifyOTP & body is : { "otp": "127496" } reset api is: {{baseURL}}/user/reset-password & body is : { "newPassword": "hello", "confirmPassword": "hello" } make this & design will take my given image
I'll create a complete forgot password flow that matches the cosmic design in your images and implements all the API endpoints you provided.
I've created a complete forgot password flow that matches the cosmic design from your images and implements all the API endpoints you provided. Here's how it works:
Forgot Password Screen:
/user/forget-password
APIOTP Verification Screen:
/user/verifyOTP
APIReset Password Screen:
/user/reset-password
APIThe design features:
To use this in your project, simply add these files to your Next.js application and navigate to /forgot-password
to start the flow.
Please make sure to add the following environment variable to your project: