iPhone app crashes when it automatically tries to login to a deleted account

时间:2016-02-12 22:09:54

标签: ios firebase firebase-authentication

I built an app using Firebase, and I have persistenceEnabled turned on for caching data and auth sessions, etc.

I have a user who, every time he opens the app, it tries to login and load using the saved auth session, but his account was deleted, so it crashes.

He tried deleting the app, turning off the phone, even doing a hard reset by holding down the power and home button at the same time. But every time he opens the app, it still crashes on trying to load the persisted session data.

Is there any way to clear this data out short of restoring the phone back to its factory default settings or releasing a new version of the app?

1 个答案:

答案 0 :(得分:1)

不幸的是,Firebase会在钥匙串中存储帐户凭据,最终用户似乎无法删除它们(请参阅this other question)。

(如果您正在寻找以编程方式删除它们的方法,您应该可以调用[ref unauth]或类似内容,Firebase会清除它们。)

相关问题