The custom token corresponds to a different audience

时光总嘲笑我的痴心妄想 提交于 2020-01-06 07:46:19

问题


I'm using firebase for authentication on my app, while developing I created a firebase project which I was using for that purpose, but now I've to sync it with another app. So on updating my google-services.json I'm getting the below error and am not able to connect to firebase.

The custom token corresponds to a different audience. [App ID does not match requested prject.]

How can I migrate my project to another one??


回答1:


Try clearing the app data, it may be loading something from storage which is related to the other project.




回答2:


I finally got the app working, basically firebase does not allow two projects with similar configuration. So in my case the test project I created while development had SHA key of my app configured, becasue of which I was getting the error.

I deleted that key and the conflict got resolved.

This is mainly in cases when you're using modules like Authentication where SHA key is used to identify the app.



来源:https://stackoverflow.com/questions/52454860/the-custom-token-corresponds-to-a-different-audience

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