Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse Swift SDK.
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
- Install a test app and log in using any method.
- Verify killing and relaunching app logs in the user and
currentUser
is populated. - Uninstall the test app from the simulator/device.
- 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