Skip to content

User sessions are not getting removed on app uninstall #246

Closed
@Vortec4800

Description

@Vortec4800

New Issue Checklist

Issue Description

When uninstalling an app and reinstalling, the currentUser still reports the same session from before the app was uninstalled. This doesn't match user expected behavior, where deleting and reinstalling an app would start things "fresh" for them.

This is likely due to the fact that Keychain values are not cleared when an app is uninstalled, which Apple seems to claim is not a bug. This may be happening with other Keychain-stored values as well like Installations, but I haven't checked those specifically at this point.

Steps to reproduce

  1. Install a test app and log in using any method.
  2. Verify killing and relaunching app logs in the user and currentUser is populated.
  3. Uninstall the test app from the simulator/device.
  4. Reinstall the test app and launch.

Actual Outcome

Upon launching after second install, currentUser is populated and the app is logged in.

Expected Outcome

The user's expected outcome would be that the newly installed app is not logged in and currentUser would return nil.

Environment

Client

  • Parse Swift SDK version: 1.10
  • Xcode version: 13
  • Operating system (iOS, macOS, watchOS, etc.): iOS
  • Operating system version: 15

Server

  • Parse Server version: 4.10.3
  • Operating system: Ubuntu
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): DO

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: 4.4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): DO

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions