小编Tie*_*Van的帖子

如何在Firebase 3.0中的应用程序之间共享身份验证令牌?

在旧版本的Firebase中,我们可以获取经过身份验证的令牌,以便在我们的应用扩展程序之间进

但是当升级到Firebase 3.0时,该功能不再起作用.我使用了getTokenWithCompletion:在FIRUser上,然后在我的App扩展中,我调用signInWithCustomToken:completion:使用我刚获得的令牌.但是Firebase会在回复时返回错误:

错误域= FIRAuthErrorDomain代码= 17000"自定义令牌格式不正确.请查看文档." UserInfo = 0x799b6010 {error_name = ERROR_INVALID_CUSTOM_TOKEN,NSLocalizedDescription =自定义标记格式不正确.请查看文档.}

如何从FIRUser获取身份验证令牌以在我的App扩展中重新验证它?

firebase firebase-authentication firebase-realtime-database

5
推荐指数
1
解决办法
4890
查看次数