久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

將 Firebase 與 Electron 一起使用

Using Firebase with Electron(將 Firebase 與 Electron 一起使用)
本文介紹了將 Firebase 與 Electron 一起使用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在嘗試將 Firebase 與 Electron 一起使用.當像我在網頁上一樣安裝它時,它不起作用,因為 Electron 頁面托管在本地并且沒有 hostname.這是我遇到的錯誤...

I'm trying to use Firebase with Electron. When installing it just like I would on a web page it doesn't work because Electron pages are hosted locally and don't have a hostname. This is the error I'm getting...

Uncaught Error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.

我無法將空(或通配符)授權域添加到 Firebase 控制臺,因此我被卡住了.有沒有人知道如何解決這個問題?

I can't add an empty (or wildcard) authorized domain to the Firebase console so I'm therefore stuck. Does anybody have any ideas of how to work around this?

這是我正在使用的代碼,它只是標準樣板,沒有額外的......

edit: Here's the code I'm using, it's just the standard boilerplate, nothing extra...

<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
  var config = {
    apiKey: "AIzaSyBvmmPB0_Oddc-02cUj3Ntt3wi8jSxxxx",
    authDomain: "xxxxx-d24ad.firebaseapp.com",
    databaseURL: "https://xxxxx-d24ad.firebaseio.com",
    storageBucket: "",
  };
  firebase.initializeApp(config);
</script>

推薦答案

現在,您可以通過從配置中刪除 authDomain 行來抑制此錯誤.Auth signInWithPopup/signInWithRedirect 操作需要 authDomain,但其他一切都應該工作.

For now, you can suppress this error by removing the authDomain line from your config. authDomain is needed for the Auth signInWithPopup/signInWithRedirect operations, but everything else should work.

只有在您實際嘗試執行 signInWithPopup/Redirect 時才會引發該錯誤的庫版本正在開發中.

A version of the library that throws that error only when you actually try to do a signInWithPopup/Redirect is in the works.

這篇關于將 Firebase 與 Electron 一起使用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 頻道中的消息?)
how to make my bot mention the person who gave that bot command(如何讓我的機器人提及發出該機器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復必須使用導入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務器時的歡迎消息)
主站蜘蛛池模板: 国产亚洲精品久久情网 | 成人在线免费 | 国产精品久久国产精品99 | 欧美啊v在线观看 | 影音先锋男 | h片在线观看免费 | 激情av在线 | a级毛片免费高清视频 | 国产精品精品视频一区二区三区 | 欧美一区二区三区 | 欧美白人做受xxxx视频 | 欧美一区二区三区久久精品 | 久久久久一区 | 国产精品123区 | 中文字幕亚洲欧美日韩在线不卡 | 色.com| 国产精品爱久久久久久久 | 欧美一区二区在线播放 | 亚洲国产精久久久久久久 | 亚洲永久入口 | 午夜免费在线观看 | 亚洲精品播放 | 日韩精品免费 | 日韩福利| 超碰成人免费 | 久久久性色精品国产免费观看 | 国产激情一区二区三区 | 久久久久久网 | 亚洲毛片在线 | 美女久久久| 亚洲精品免费在线观看 | 欧美v在线 | 成av人电影在线 | 久久久av | 国产高清久久 | 欧美综合视频 | 欧美性猛片aaaaaaa做受 | 欧美寡妇偷汉性猛交 | 午夜a区| 精品成人一区二区 | av网站在线免费观看 |