Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

Refresh Token Status Code #10

Description

@molinama

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions