简体   繁体   English

如何设置 Firebase actionCodeSettings?

[英]How to set up Firebase actionCodeSettings?

I'm trying to set up email user verification with Firebase and according to their documentation actionCodeSettings must be configured.我正在尝试使用 Firebase 设置 email 用户验证,并且必须根据他们的文档配置 actionCodeSettings。

This is my code so far:到目前为止,这是我的代码:

var actionCodeSettings = {
  // URL you want to redirect back to. The domain (www.example.com) for this
  // URL must be in the authorized domains list in the Firebase Console.
  url: 'www.myDomain.com',
  // This must be true.
  handleCodeInApp: true,
  iOS: {
    bundleId: 'com.example.ios'
  },
  android: {
    packageName: 'com.example.android',
    installApp: true,
    minimumVersion: '12'
  },
  dynamicLinkDomain: 'example.page.link'
};

However, I get this error: error: {code: 400, message: "INVALID_CONTINUE_URI: Missing domain in continue url"但是,我收到此错误: error: {code: 400, message: "INVALID_CONTINUE_URI: Missing domain in continue url"

I have also tried putting handleCodeInApp to false (as shown in this solution: Firebase Passing State(continue to website link) in Password Reset Email and email verification ), but I get no response in the console.我也尝试将handleCodeInApp设置为false(如本解决方案所示: Firebase Passing State(continue to website link) in Password Reset Email and email 在控制台验证中没有响应),

Does anyone know why it doesn't work?有谁知道为什么它不起作用? Thanks in advance!提前致谢!

You are missing the protocol for the URL, eg.您缺少 URL 的协议,例如。
url: 'https://www.example.com' url:'https://www.example.com'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用管理员 SDK 为数据库触发器设置 firebase FCM - How to set up firebase FCM with Admin SDK for database triggers 反应本机Firebase设置 - React Native Firebase Set Up 如何解决“未定义 Firebase”错误? 我正在尝试在最基本的级别设置 Firebase - How do I resolve a "firebase is not defined" error? I'm trying to set up Firebase at the most basic level 为Firebase DB设置安全性的正确方法 - Correct way to set up security for Firebase DB 如何设置多个 firebase.on() 侦听器并在全部解决后触发 function - How to set up multiple firebase .on() listeners and trigger function after all have resolved 如何将日期设置为 firebase? - How to set date to firebase? 如何为 REST 请求设置 Firebase 实时数据库规则? - How to set up Firebase Realtime Database-rules to REST-requests? 如何设置 Firebase 实时数据库以允许开发人员在控制台中标记管理员 - How to set up Firebase Realtime Database to allow developer to mark admins in the console 如何使用我在firebase函数中设置的参数调用该函数 - How do I call the function with a parameter I set up in firebase functions 加载 React 应用程序时如何设置 firebase auth onAuthStateChanged() 侦听器运行? - How to set up firebase auth onAuthStateChanged() listener run when React app is loaded?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM