Firebase自定义身份验证问题令牌不同的受众

Firebase自定义身份验证问题令牌不同的受众

本文介绍了Firebase自定义身份验证问题令牌不同的受众的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照以下说明进行了尝试: https://firebase.google. com/docs/auth/server/create-custom-tokens

Tried following the instructions here:https://firebase.google.com/docs/auth/server/create-custom-tokens

在服务器上创建一个Firebase自定义令牌,然后尝试通过iOS SDK登录到Firebase,但收到带有自定义令牌的消息自定义令牌对应于其他受众."

to create a firebase custom token and on the server and then trying to sign in to firebase through the iOS SDK but getting this message with the custom token "The custom token corresponds to a different audience."

我正在尝试使用节点sdk,还尝试了使用第三方jwt库创建令牌的php路由.在Firebase 3.0中是否已被破坏?

I am trying this use the node sdk, also tried the php route creating the token with third party jwt library. Is this broken in firebase 3.0?

推荐答案

用于铸造自定义令牌的服务帐户可能与您在iOS客户端中使用的服务帐户对应的项目不同.铸造令牌的后端节点服务器和调用signInWithCustomToken的客户端应属于同一项目.

It's likely that the service account you are using to mint the custom token corresponds to a different project than the one you are using in your iOS client. The backend node server minting the token and the client calling signInWithCustomToken should belong to the same project.

这篇关于Firebase自定义身份验证问题令牌不同的受众的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 17:57