电子Firebase:FIREBASE警告:提供的身份validation凭据无效

我已经创build了使用Firebase身份validation和数据库的electron应用程序。 应用程序使用signInWithCustomToken和来自远程服务器的令牌。 在我的工作机器上(macOS)它按预期工作。 但是,当我克隆我的回购家用机器(Windows),我收到

 FIREBASE WARNING: Provided authentication credentials are invalid. This usually indicates your FirebaseApp instance was not initialized correctly. Make sure your apiKey and databaseURL match the values provided for your app at https://console.firebase.google.com/ 

正如我在这里发现与firebase-admin相同的问题错误。 但是我正在使用客户端库。 另外我误解了它如何依赖于它运行的机器?

我使用与webpack打包在一起的npm包webpack firebase 4.1.5到客户端脚本中

初始化:

 const firebaseConf = { apiKey: '<api_key>', authDomain: '<domain>.firebaseapp.com', databaseURL: 'https://<database>.firebaseio.com', projectId: '<project_id>', storageBucket: '<storage>.appspot.com', messagingSenderId: '<sender_id>', }; Vue.prototype.$firebase = firebase.initializeApp(firebaseConf); 

所以在工作机器上所有数据库操作都正常 但是在家用机器上,它在signInWithCustomToken调用后显示几次警告,并且什么都不做。代码是完全一样的。 它是从bitbucket克隆的

我花了整整一天的时间,试图找出原因,但失败了。 对不起我的英语不好

先谢谢你