ABI*_*Wen 1 authentication firebase reactjs firebase-authentication vercel
大家好,我有 vite 应用程序,我使用了 firebase google auth 。它工作正常,但是当我将它部署在 vercel 上时,它给了我这个错误:
当前域未获得 OAuth 操作授权。这将阻止signInWithPopup、signInWithRedirect、linkWithPopup 和linkWithRedirect 工作。将您的域 (todomarwenlabidi.vercel.app) 添加到 Firebase 控制台 -> 身份验证部分 -> 登录方法选项卡中的 OAuth 重定向域列表。
这是我的应用程序链接:https ://todomarwenlabidi.vercel.app/
我将域添加到授权域 看看这张照片
这是我的 firebase 配置文件:
const firebaseConfig = {
apiKey:import.meta.env.VITE_API_KEY ,
authDomain: "todo-app-97ae2.firebaseapp.com",
projectId: "todo-app-97ae2",
storageBucket: "todo-app-97ae2.appspot.com",
messagingSenderId: "540711457418",
appId:import.meta.env.VITE_APP_ID ,
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1890 次 |
| 最近记录: |