【发布时间】:2017-11-28 23:04:50
【问题描述】:
在Firebase 的最新版本中,getTokenForcingRefresh 已被弃用。我正在使用它,因为身份验证令牌过期,我需要能够刷新令牌并在它失败时重试休息命令。这个 API 的正确替代品是什么?
【问题讨论】:
标签: ios firebase firebase-authentication
在Firebase 的最新版本中,getTokenForcingRefresh 已被弃用。我正在使用它,因为身份验证令牌过期,我需要能够刷新令牌并在它失败时重试休息命令。这个 API 的正确替代品是什么?
【问题讨论】:
标签: ios firebase firebase-authentication
看来您需要使用 getIDTokenForcingRefresh:completion API 而不是已弃用的 API。
请在此处查看FIRUser 类文档:
https://github.com/firebase/firebase-ios-sdk/blob/master/Firebase/Auth/Source/Public/FIRUser.h#L307
【讨论】: