ruby on rails - ng-token-auth $rootscope.user object changes on page refresh -


i'm getting issues using ng-token-auth devise-token-auth. sign in, sign , sign out working well. when refresh page while user signed in, $rootscope.user object gets updated value of signed in user.

when clear cookies after each sign out, works fine. auth_headers being updated on each sign in/page refresh.

config.change_headers_on_each_request set true in devise_token_auth.rb.

i have same problem (i think). opened issue , apparently related pull request.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -