November 2017
Beginner to intermediate
288 pages
7h 33m
English
//Get a button reference. let anonLogin = document.getElementById('anonymousLogin'); anonLogin.addEventListener('click', () => { firebase.auth().signInAnonymously() .catch(err => { //Catch and showcase the error. }); }, false);
firebase.auth().onAuthStateChanged((user) => { if (user) { // Since we have the user object, we have a stable connection, and we're // authenticated. var uid = user
Read now
Unlock full access