I installed the Firebase project that I use for this user authentication module. I also use the firebaseui-web project from Github.
My login redirect works fine in this code:
var uiConfig = {
'signInSuccessUrl': 'MY_REDIRECT.html',
'signInOptions': [
firebase.auth.EmailAuthProvider.PROVIDER_ID
],
'tosUrl': '<your-tos-url>',
};
When the page loads (i.e. MY_REDIRECT.html), I check the status of the user to see if he checks his email, and if not, then call the sendEmailVerification method :
checkLoggedInUser = function() {
auth.onAuthStateChanged(function(user) {
if (user) {
if(user.emailVerified) {
$('#loggedinUserLink').html('Logged in:' + user.email + '<span class="caret"></span>');
} else {
alert('Please check your inbox for a verification e-mail and follow the instructions');
user.sendEmailVerification().then(function() {
window.location.replace('index.html');
});
}
} else {
window.location.replace("index.html");
}
}, function(error) {
console.log(error);
});
};
window.onload = function() {
checkLoggedInUser()
};
Everything is fine so far - Firebase does what I want! Thanks guys:)
Firebase Console , , . :

, UID .
, - ? (, , , ) Auth? UID ( emailVerified). , , , - .