Niels-Be / Coffee-light

7 stars 3 forks source link

401 on first request #8

Closed Peter42 closed 7 years ago

Peter42 commented 7 years ago

The first pageload failes. image A refresh does the job.

Niels-Be commented 7 years ago

there is a race condition between getSubscriptions and loginOnServer. loginOnServer is called in app.js:128 once firebase login competes. getSubscriptions is called once scope is loaded.

We have to define some kind of delay or a callback to ensure getSubscriptions gets called after loginOnServer completed.

Peter42 commented 7 years ago

@WaeCo exactly what I did, please review 10496fd