1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-02-24 23:22:47 +01:00

auth: save last successful auth provider

This commit is contained in:
Kushagra Gour 2018-01-22 12:03:34 +05:30
parent d0c1c4d146
commit 213b9f166d

View File

@ -21,6 +21,8 @@ function login(providerName) {
.signInWithPopup(provider)
.then(function() {
trackEvent('fn', 'loggedIn', providerName);
// Save to recommend next time
window.db.local.set({ lastAuthProvider: providerName });
})
.catch(function(error) {
alert(