Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

missing domain in continue url

I am trying to Authenticate with Firebase Using an Email Link in React native and expo. Here is my code

    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);
          }
        },

I am getting the errors: auth/invalid-continue-uri Missing domain in continue url What should be the value of url?

like image 405
Mamunur Rashid Avatar asked May 09 '26 18:05

Mamunur Rashid


1 Answers

You are missing the protocol for the URL, eg.
url: 'https://ndimensions-9c677.web.app'

like image 159
Arve Waltin Avatar answered May 12 '26 11:05

Arve Waltin