Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

آدرس سرویس : authenticate/first-page/

بدنه درخواست : کد واردشده 

متد : POST 

نوع محتوا : application/x-www-form-urlencoded

پاسخ : 

Code Block
languagetext
titleنمونه پاسخ درست first-page
"error": {
        "next_page": "it can be current or error or any page , if it is current stay there and toast the reason and if it is error page print it on the error page dont need to toast but for another pages toast the reason",
        "reason": ""
    },
    "success": {
        "next_page": "otp",
		"next_page_action":"/login"
		"next_page_data":{},
        "ready_for_final_authenticate": true
    }


توضیح پاسخ :

در هر پاسخی وقتی مقدار ready_for_final_authenticate برابر true بود باید /login/ فراخوانی شود و کاربر redirect شود.