Firebase custom auth issue token different audience

≯℡__Kan透↙ 提交于 2020-01-04 04:54:29

问题


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

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."

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?


回答1:


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.



来源:https://stackoverflow.com/questions/39067121/firebase-custom-auth-issue-token-different-audience

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!