3

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.

Community
  • 1
  • 1
maddie
  • 1,854
  • 4
  • 30
  • 66
  • 1
    Hi Elizabeth. Please post the relevant details/code snippets over here instead of having the community go over to GitHub. It'd be faster for them to see the details. Cheers! :) – AL. Feb 24 '17 at 02:55
  • 1
    I'm having the same issue right now. Did this just start working for you at some point? – sonicblis Mar 21 '17 at 02:13
  • @sonicblis - yes it did. I basically debugged my code by serving my app locally until I was finally ready to deploy (yesterday actually). Deploying yesterday was successful. It can still take a couple of hours for the changes to be reflected(safari is faster than chrome i've noticed), but it does eventually update – maddie Mar 21 '17 at 04:46

0 Answers0