4
我使用ng-token-auth和devise-token-auth来解决问题。登录,注册和退出运行良好。但是,当用户登录时刷新页面时,$ rootscope.user对象会使用之前登录的用户的值进行更新。
当我在每次注销后清除cookie时,一切正常。 每个登录/页面刷新都会更新auth_headers。
config.change_headers_on_each_request在devise_token_auth.rb中也设置为true。
你能解决这个问题吗?我现在有同样的问题。 – MPorto