My up-to-date files, specifically my JS file, are not reflected in the files deployed by Firebase on Chrome (I do not have this problem on Safari). I followed instructions listed here
On Chrome, I went directly to my file and did a "Hard reload" and a "Empty Cache and Hard Reload", but the change was never reflected.
Essentially, Firebase is using this version of app.js:
function.googleSignin(){
var provider = new firebase.auth.GoogleAuthProvider();
firebase.auth().signInWithRedirect(provider);
}
firebase.auth().getRedirectResult().then(function(result) {
// This gives you a Google Access Token. You can use it to access the Google API.
var token = result.credential.accessToken;
var user = result.user;
}).catch(function(error) {
var errorCode = error.code;
var errorMessage = error.message;
var email = error.email;
var credential = error.credential;
});
But my local version is this:
function googleSignin(){
var provider = new firebase.auth.GoogleAuthProvider();
firebase.auth().signInWithRedirect(provider);
}
firebase.auth().getRedirectResult().then(function(result) {
// This gives you a Google Access Token. You can use it to access the Google API.
var token = result.credential.accessToken;
var user = result.user;
}).catch(function(error) {
var errorCode = error.code;
var errorMessage = error.message;
var email = error.email;
var credential = error.credential;
});
If you'd like to inspect my project, the GitHub link is here.