once user put phonenumber and clicked signin i send a post request to get token from…
- User
once user put phonenumber and clicked signin i send a post request to get token from /api/generate_token then i send another post request with otp number and phonenumber which user is typed if otp is ok then i will get a jwt token from backend and now user is logged in : curl -X 'POST'
'https://api.bimehtakmili.com/api/login/generate_token'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "mobile_no": "6588761007" }' curl -X 'POST'
'https://api.bimehtakmili.com/api/login/verify_otp'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "mobile_no": "3150744036", "otp": "26561" }' i want to do this flow with next-auth in next 14 with app router - Assistant