{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/148","repository_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/148/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/148/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/148","id":57334206,"number":148,"title":"/validate_token","user":{"login":"maxrosecollins","id":784189,"avatar_url":"https://avatars.githubusercontent.com/u/784189?v=3","gravatar_id":"","url":"https://api.github.com/users/maxrosecollins","html_url":"https://github.com/maxrosecollins","followers_url":"https://api.github.com/users/maxrosecollins/followers","following_url":"https://api.github.com/users/maxrosecollins/following{/other_user}","gists_url":"https://api.github.com/users/maxrosecollins/gists{/gist_id}","starred_url":"https://api.github.com/users/maxrosecollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxrosecollins/subscriptions","organizations_url":"https://api.github.com/users/maxrosecollins/orgs","repos_url":"https://api.github.com/users/maxrosecollins/repos","events_url":"https://api.github.com/users/maxrosecollins/events{/privacy}","received_events_url":"https://api.github.com/users/maxrosecollins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2015-02-11T15:53:47Z","updated_at":"2016-12-19T21:17:24Z","closed_at":"2015-02-12T17:10:49Z","body":"How am I supposed to use this end point? it says 'Accepts uid and auth_token as params' and that these are in the db, I dont have a db field called auth_token, I have tokens?\n"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/268080985","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/148#issuecomment-268080985","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/148","id":268080985,"user":{"login":"stratigos","id":3875361,"avatar_url":"https://avatars.githubusercontent.com/u/3875361?v=3","gravatar_id":"","url":"https://api.github.com/users/stratigos","html_url":"https://github.com/stratigos","followers_url":"https://api.github.com/users/stratigos/followers","following_url":"https://api.github.com/users/stratigos/following{/other_user}","gists_url":"https://api.github.com/users/stratigos/gists{/gist_id}","starred_url":"https://api.github.com/users/stratigos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stratigos/subscriptions","organizations_url":"https://api.github.com/users/stratigos/orgs","repos_url":"https://api.github.com/users/stratigos/repos","events_url":"https://api.github.com/users/stratigos/events{/privacy}","received_events_url":"https://api.github.com/users/stratigos/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T21:17:24Z","updated_at":"2016-12-19T21:17:24Z","body":"Id just like to call to attention that, based on the README, its not easy to answer @maxrosecollins question:\r\n\r\n> So when do i need to use the /validate_token end point?\r\n\r\nI have some general assumptions about it, but Im trying to give an authoritative answer to a fellow developer who is using my API for a mobile app, and its very difficult to do by just reading the source code or the README document.\r\n\r\n@nicolas-besnard answer was basically what I was assuming:\r\n\r\n> If you use ng-token-auth, you don't need to use this route. I think it's called \"automatically\".\r\n> If you don't use it, you should call this route when you need to know if the user's token is not expired :)\r\n\r\nIll interpret this as, _you only need to use_ `/validate_token` _if you really want to_. It is up to the application maintainers to decide on a policy if this endpoint is necessary, and where. It is not, by default, required for any specific workflow. \r\n\r\nI think a small note in the README about this endpoint and its implied uses, and any further information you have on it, would be very helpful to us adopters of `devise_token_auth`. \r\n\r\nThanks!"}}
{"actor":{"display_login":"stratigos"}}