Skip to content

Different errors assigned to the same code 209 #2626

Closed
@courteouselk

Description

@courteouselk

If I do PFSession.getCurrentSession() right after the call to PFUser.logOut() then I receive [Error]: Session token required. (Code: 209, Version: 1.14.2).

After checking the documentation I see another kind of error assigned to the same code 209, that is, InvalidSessionToken with description:

The device’s session token is no longer valid. The application should ask the user to log in again.

The "problem" is, I got into present situation after doing exactly that, that is logging the user out after I receive another kind of 209 error, namely "Invalid session token".

IMO, the "session token required" state should have a different error code, not colliding with "invalid session token". Is this something by-design or a bug?

I use Parse Server version 2.2.18 with Parse-SDK-iOS-OSX version 1.4.2.

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