Closed xxi511 closed 1 year ago
access token is stored in keychain. Keychain data will be persisted after deleting app. That means app is logged in after re-install. definitely a bug
Solution, save a flag in UserDefault. If this is fresh install, clear keychain data.
UserDefault
The consequence is app will be logged out first time. Because the flag doesn't exist, it will be treated as fresh install
Just noting: This implementation will be likely required a declared reason for using UserDefaults. (tweet, Apple Developer News.)
UserDefaults
access token is stored in keychain.
Keychain data will be persisted after deleting app.
That means app is logged in after re-install.
definitely a bug
Solution, save a flag in
UserDefault
.If this is fresh install, clear keychain data.
The consequence is app will be logged out first time.
Because the flag doesn't exist, it will be treated as fresh install