Skip to content

Users getting signed out #17

@crspybits

Description

@crspybits

I've been getting reports of users being signed out when the app launches. This shouldn't happen.

From error logs and from code tracing, the sequence seems to be:

  1. The app launches.
  2. The appLaunchSetup(userSignedIn for the credentials (e.g., iOSGoogle) gets called.
  3. That credentials method calls the GenericSignInDelegate method signInCompleted.
  4. That call leads to a call to iOSBasics internal method completeSignInProcess
  5. That method calls api.checkCreds

If it has been a while since the app was last launched the sign in credentials may have expired.
This leads to the api.checkCreds call to receive an unauthorized response from the server, and the user is then signed out.

While I do do a refresh credentials when the app starts, that's insufficient. At best there is a race condition between that credentials refresh and the above api.checkCreds.

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