In the comments of the accepted answer it was noted I should set my firebase version to 4.3.1, not my last version 4.2.0
Hi this should be rather straightforward, I'm following the documentation at: firebase passing state in email actions as well as changing the default email-handler
I'm looking to redirect the user after he has verified his e-mail to a new url. The url is already in the Authenticated domains in firebase.
I also already have my actionCodeSettings:
var actionCodeSettings = {
url: 'http://myurl.io/join',
iOS: {
bundleId: 'com.myurl.ios'
},
android: {
packageName: 'com.myurl.android',
installApp: false,
minimumVersion: '12'
},
handleCodeInApp: false
};
function sendEmailVerification() {
console.log('sendEmail Verification');
firebase.auth().currentUser.sendEmailVerification(actionCodeSettings).then(function() {
});
}
If I understand correctly, I now need to implement getParameterByName which I found from another answer. My 2 questions are:
1) The default action URL is https://faros-fe2f5.firebaseapp.com/__/auth/action . Am I supposed to change this? It will change automatically based on my actionCodeSettings I guess
2) At line 113 we have the function of interest and it takes the parameters that are retrieved through getParameterByName. How is the continueUrl called at this point?
I find the documentation a bit vague on this subject. At this stage I want to redirect the user after e-mail verification is complete