{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/210","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/210/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/210/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/210","id":67734491,"number":210,"title":"Generating many client tokens","user":{"login":"npearson72","id":1323414,"avatar_url":"https://avatars.githubusercontent.com/u/1323414?v=3","gravatar_id":"","url":"https://api.github.com/users/npearson72","html_url":"https://github.com/npearson72","followers_url":"https://api.github.com/users/npearson72/followers","following_url":"https://api.github.com/users/npearson72/following{/other_user}","gists_url":"https://api.github.com/users/npearson72/gists{/gist_id}","starred_url":"https://api.github.com/users/npearson72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npearson72/subscriptions","organizations_url":"https://api.github.com/users/npearson72/orgs","repos_url":"https://api.github.com/users/npearson72/repos","events_url":"https://api.github.com/users/npearson72/events{/privacy}","received_events_url":"https://api.github.com/users/npearson72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-11T05:01:10Z","updated_at":"2015-05-19T19:41:17Z","closed_at":null,"body":"I apologize for the cross-post, but I'm not sure if the problem I'm experiencing is related to this gem or it's angular library counterpart (or my improper implementation), but I've posted my issue here also: \r\n\r\nhttps://github.com/lynndylanhurley/ng-token-auth/issues/140\r\n\r\nWhat I'm seeing is that when I close the browser while logged in, and I then open the browser and log back into my app, it generates a new client token.\r\n\r\nThis causes many client tokens to be generated.\r\n\r\nIs anyone else experiencing something like this? Any ideas on how to prevent this?"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/103647667","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/210#issuecomment-103647667","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/210","id":103647667,"user":{"login":"nicolas-besnard","id":1261670,"avatar_url":"https://avatars.githubusercontent.com/u/1261670?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas-besnard","html_url":"https://github.com/nicolas-besnard","followers_url":"https://api.github.com/users/nicolas-besnard/followers","following_url":"https://api.github.com/users/nicolas-besnard/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-besnard/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-besnard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-besnard/subscriptions","organizations_url":"https://api.github.com/users/nicolas-besnard/orgs","repos_url":"https://api.github.com/users/nicolas-besnard/repos","events_url":"https://api.github.com/users/nicolas-besnard/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-besnard/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T19:41:17Z","updated_at":"2015-05-19T19:41:17Z","body":"Could be useful, but if you open your API to external developer, they won't\nthink about sending the client_id. Doesn't seems to be a good fix IMO.\n\nOn Tue, May 19, 2015 at 5:52 PM Lynn Dylan Hurley <notifications@github.com>\nwrote:\n\n> If they're already signed in, I think the client_id header may already be\n> appended to the authentication request. We would just need to check for it\n> and re-use it if it's there, or delete the existing token from the tokens\n> hash.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/lynndylanhurley/devise_token_auth/issues/210#issuecomment-103560564>\n> .\n>\n"}}