【问题标题】:missing domain in continue url继续 url 中缺少域
【发布时间】:2021-06-02 04:51:40
【问题描述】:

我正在尝试在 React native 和 expo 中使用电子邮件链接通过 Firebase 进行身份验证。 这是我的代码

    const actionCodeSettings = {
      url: 'ndimensions-9c677.web.app',
      handleCodeInApp: true,
  };

       emailAuth: async (email) => {
          try {
            firebase.auth().sendSignInLinkToEmail(email, actionCodeSettings)
              .then(() => {
                // The link was successfully sent. Inform the user.
                // Save the email locally so you don't need to ask the user for it again
                // if they open the link on the same device.
                window.localStorage.setItem('emailForSignIn', email);
                // ...
              })
              .catch((error) => {
                const errorCode = error.code;
                const errorMessage = error.message;
                console.log(errorCode, errorMessage);
                // ...
              });
          } catch (error) {
            console.log('Something went wrong with Email Link Authentication: ', error);
          }
        },

我收到错误:auth/invalid-continue-uri 在 continue url 中缺少域 url的值应该是多少?

【问题讨论】:

    标签: firebase react-native firebase-authentication expo


    【解决方案1】:

    您缺少 URL 的协议,例如。
    网址:'https://ndimensions-9c677.web.app'

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多