[英]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.