warmshowers / Warmshowers.org

The code for warmshowers.org. If you'd like to help develop code for Warmshowers.org or if you would like to handle some of the website configuration/sitebuilding tasks in the issue queue, please let me know.
http://www.warmshowers.org
60 stars 22 forks source link

Question around Authentication API #1024

Open OUCHUNYU opened 6 years ago

OUCHUNYU commented 6 years ago

Thanks for building this great platform. I just started to play around with the wsandroid code base. The first thing I noticed was that for every authentication, the Android app makes a post request to this API endpoint /services/rest/user/logout, to log out first before calling /services/rest/user/login to login. The response for /services/rest/user/logout is 406. I wonder what is the reason for calling log out before logging in? If it is still necessary.