auth/facebook-redirect.html [65:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - var token = result.credential.accessToken; document.getElementById('quickstart-oauthtoken').textContent = token; } else { document.getElementById('quickstart-oauthtoken').textContent = 'null'; } // The signed-in user info. var user = result.user; }).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. var email = error.email; // The firebase.auth.AuthCredential type that was used. var credential = error.credential; if (errorCode === 'auth/account-exists-with-different-credential') { alert('You have already signed up with a different auth provider for that email.'); // If you are using multiple auth providers on your app you should handle linking // the user's accounts here. } else { console.error(error); } }); // Listening for auth state changes. firebase.auth().onAuthStateChanged(function(user) { if (user) { // User is signed in. var displayName = user.displayName; var email = user.email; var emailVerified = user.emailVerified; var photoURL = user.photoURL; var isAnonymous = user.isAnonymous; var uid = user.uid; var providerData = user.providerData; document.getElementById('quickstart-sign-in-status').textContent = 'Signed in'; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - auth/github-redirect.html [65:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - var token = result.credential.accessToken; document.getElementById('quickstart-oauthtoken').textContent = token; } else { document.getElementById('quickstart-oauthtoken').textContent = 'null'; } // The signed-in user info. var user = result.user; }).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // The email of the user's account used. var email = error.email; // The firebase.auth.AuthCredential type that was used. var credential = error.credential; if (errorCode === 'auth/account-exists-with-different-credential') { alert('You have already signed up with a different auth provider for that email.'); // If you are using multiple auth providers on your app you should handle linking // the user's accounts here. } else { console.error(error); } }); // Listening for auth state changes. firebase.auth().onAuthStateChanged(function(user) { if (user) { // User is signed in. var displayName = user.displayName; var email = user.email; var emailVerified = user.emailVerified; var photoURL = user.photoURL; var isAnonymous = user.isAnonymous; var uid = user.uid; var providerData = user.providerData; document.getElementById('quickstart-sign-in-status').textContent = 'Signed in'; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -