-
Notifications
You must be signed in to change notification settings - Fork 3
Description
When a customer wants to register, after calling the sign-up API, you need to redirect them to a new page where they can enter the OTP code sent to their email.
In this new page, we have a counter that shows 5 minutes for the customer to enter the code and after the counter shows 0, there is a link that asks to resend a new OTP code.
The customer can only be redirected to the home page if we confirm it and also if the process is interrupted for any reason, the customer can log in again and you need to redirect them to the page again for confirmation.
The related backend branch is #184-add-mail-server
In response of fetch user data, you can find a new parameter we call:verified. By this parameter you can find user state.
after sign up you should get access token and then you can call belows API
Verify client:
URL: api/v1/users/verify-otp
Method: Put
Body: inputCode (String)
Resend OTP:
URL: api/v1/users/resend-otp
Method: Get