Here’s the first problem: can I attach these headers to all subsequent HTTP calls implicitly? Eg, instead of using HTTP.get(‘url’, { headers: Session.get(‘headers’) }), just have it do it by default. kind of like an $http.interceptors in angular

Also, it seems every time a reload happens, my session is cleared. is this the right place to keep these headers? Am I using it wrong?

Finally, how do I know when my login token expires? It seems restivus uses Accounts._generateStampedLoginToken(). How can I extract when it expires and make a hook for when it expires? Eg, in pseudocode: