{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/284","repository_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth","labels_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/284/comments","events_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/284/events","html_url":"https://github.com/lynndylanhurley/ng-token-auth/issues/284","id":150018297,"number":284,"title":"Response 401 on post,  but i'm loggued","user":{"login":"FredHasselot","id":8779534,"avatar_url":"https://avatars.githubusercontent.com/u/8779534?v=3","gravatar_id":"","url":"https://api.github.com/users/FredHasselot","html_url":"https://github.com/FredHasselot","followers_url":"https://api.github.com/users/FredHasselot/followers","following_url":"https://api.github.com/users/FredHasselot/following{/other_user}","gists_url":"https://api.github.com/users/FredHasselot/gists{/gist_id}","starred_url":"https://api.github.com/users/FredHasselot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredHasselot/subscriptions","organizations_url":"https://api.github.com/users/FredHasselot/orgs","repos_url":"https://api.github.com/users/FredHasselot/repos","events_url":"https://api.github.com/users/FredHasselot/events{/privacy}","received_events_url":"https://api.github.com/users/FredHasselot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-21T09:27:14Z","updated_at":"2016-04-27T14:04:38Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using devise_token_auth on the server side.\r\nAnd ng-token-auth on the client side.\r\n\r\ni can log-in and when i reload the app i'm still logged in.\r\ni use localStorage.\r\n\r\nNow when i send a Post request to save some texts on the database, i get a 401 response.\r\ni use a filter like : \" before_action :authenticate_user! \", on my controller on the server side.\r\n(if i comment this filter, the request is successfull)\r\n\r\nI don't understand what's happening.\r\nThe post request doesn't include the token? \r\nor is it a server side issue?\r\n\r\nThanks\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/comments/215093903","html_url":"https://github.com/lynndylanhurley/ng-token-auth/issues/284#issuecomment-215093903","issue_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/284","id":215093903,"user":{"login":"FredHasselot","id":8779534,"avatar_url":"https://avatars.githubusercontent.com/u/8779534?v=3","gravatar_id":"","url":"https://api.github.com/users/FredHasselot","html_url":"https://github.com/FredHasselot","followers_url":"https://api.github.com/users/FredHasselot/followers","following_url":"https://api.github.com/users/FredHasselot/following{/other_user}","gists_url":"https://api.github.com/users/FredHasselot/gists{/gist_id}","starred_url":"https://api.github.com/users/FredHasselot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredHasselot/subscriptions","organizations_url":"https://api.github.com/users/FredHasselot/orgs","repos_url":"https://api.github.com/users/FredHasselot/repos","events_url":"https://api.github.com/users/FredHasselot/events{/privacy}","received_events_url":"https://api.github.com/users/FredHasselot/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T14:04:38Z","updated_at":"2016-04-27T14:04:38Z","body":"After i'm logged, when \"auth:validation-success\" return an object, i tested to add something like this on a controller rails: user_signed_in?  and it return false... \r\n\r\ni don't understand why $auth.validateUser return true and it's false on devise\r\n "}}