FirebaseExtended / firebase-auth-migration-helpers

Other
11 stars 16 forks source link

invalid-user-token ? #12

Open tgensol opened 7 years ago

tgensol commented 7 years ago

Hey guys,

I am trying to use the web version, udpating my mobile application (ionic 1/angularjs1) from firebase 2.4.2 (I was using the new dashboard for weeks, but still with this old version) to the new firebase.

But, from my old token, I always got the error "invalid-user-token : Invalid auth token."

Do I miss something ? Is it working for every provider ? or I had to do it before switching the dashboard ?

Thanks

tgensol commented 7 years ago

Looks like the localStorage is not working good on angularJS/ionic , so I always got a null token. I changed the code and it is working now. I already found this issue in angularfire, sometimes the user is not found when the app is started. Using $window instead of window looks to work better