Skip to content

Verify user by OTP code #185

@ma-mirzaei

Description

@ma-mirzaei

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

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions