You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the access_token expired the sdk never try to use the refresh_token because when asking for the response status code, the Meli sdk is comparing it with the 404 Status Code (Not Found) instead of 401 (Auth error).
This is the wrong code into the Meli.java
if (params.containsKey("access_token") && this.hasRefreshToken()
&& response.getStatusCode() == 404) {
It should be
if (params.containsKey("access_token") && this.hasRefreshToken()
&& response.getStatusCode() == 401) {
When the access_token expired the sdk never try to use the refresh_token because when asking for the response status code, the Meli sdk is comparing it with the 404 Status Code (Not Found) instead of 401 (Auth error).
This is the wrong code into the Meli.java
It should be