master
Nikhil KJ 3 年之前
父節點
當前提交
c055cb3ba4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      Project-details.md

+ 2
- 1
Project-details.md

@@ -10,4 +10,5 @@
## API integration for the front-end ## API integration for the front-end
1. Pass Email ID `{"email" : "<registered user email id>"}` as a POST request to http://localhost:8000/auth/email/ 1. Pass Email ID `{"email" : "<registered user email id>"}` as a POST request to http://localhost:8000/auth/email/
2. Since the backend will be locally connected to check the OTP visit the console on which you're running the backend. The OTP/Token will be displayed along with the appropriate message. 2. Since the backend will be locally connected to check the OTP visit the console on which you're running the backend. The OTP/Token will be displayed along with the appropriate message.
3. Pass the OTP as POST request to http://localhost:8000/auth/token/ `{"email" : "<registered user email id>", "token": "<received OTP>"}`
3. Pass the OTP as POST request to http://localhost:8000/auth/token/ `{"email" : "<registered user email id>", "token": "<received OTP>"}`
4. If the OTP matches the backend will provide a valid token