Closed ayhncvdr2 closed 1 year ago
We decided to add success and msg fields to each response. Thus, we'll be able to track error and success responses with one model in mobile.
Ex: Success login
{ "success": true "msg": "success" "access": "", "refresh": "" }
Ex: Fail login { "success": false "msg": "Invalid username or password" }
We decided to add success and msg fields to each response. Thus, we'll be able to track error and success responses with one model in mobile.
Ex: Success login
{ "success": true "msg": "success" "access": "", "refresh": "" }
Ex: Fail login { "success": false "msg": "Invalid username or password" }