mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-18 12:31:12 +02:00
open up accounts to chrome extension too 🚀
This commit is contained in:
@@ -23,10 +23,12 @@ function login(providerName) {
|
||||
window.db.local.set({ lastAuthProvider: providerName });
|
||||
})
|
||||
.catch(function(error) {
|
||||
alert(
|
||||
'You have already signed up with the same email using different social login'
|
||||
);
|
||||
utils.log(error);
|
||||
if (error.code === 'auth/account-exists-with-different-credential') {
|
||||
alert(
|
||||
'You have already signed up with the same email using different social login'
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
window.login = login;
|
||||
|
Reference in New Issue
Block a user