且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase - 删除并重新安装应用程序不会取消对用户的身份验证

更新时间:2023-12-05 17:19:52

Firebase 身份验证会话保留在用户设备上的 iOS 钥匙串中.卸载应用程序时不会删除应用程序的钥匙串数据.

The Firebase authentication session is persisted on the user's device in the iOS keychain. The keychain data for the application is not removed when the application is uninstalled.

如果您想手动清除数据,您可以将一些额外的元数据与您的应用程序一起存储,并手动调用 FirebaseRef.unauth() 来清除持久的会话.请参阅#4747404:卸载应用程序时删除钥匙串项目供额外参考.

If you're looking to manually clear the data, you can store some additional metadata along with your application and manually call FirebaseRef.unauth() to clear the persisted session. See #4747404: Delete keychain items when an app is uninstalled for an additional reference.