master
Nikhil KJ 3年前
コミット
fb447b32cf
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      Project-details.md

+ 2
- 2
Project-details.md

@@ -11,7 +11,7 @@ Helpful Links: [Deliverables](https://docs.google.com/spreadsheets/d/11FLRwgf3WV
7. Execute `python manage.py runserver` 7. Execute `python manage.py runserver`
## Auth API integration for the front-end ## Auth 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/workx/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/workx/auth/token/ `{"email" : "<registered user email id>", "token": "<received OTP>"}`
4. If the OTP matches the backend will provide a valid token 4. If the OTP matches the backend will provide a valid token