{"action":"closed","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/102","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/102/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/102/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/102","id":53432769,"number":102,"title":"Active job token expiring integration","user":{"login":"caulfield","id":906583,"avatar_url":"https://avatars.githubusercontent.com/u/906583?v=3","gravatar_id":"","url":"https://api.github.com/users/caulfield","html_url":"https://github.com/caulfield","followers_url":"https://api.github.com/users/caulfield/followers","following_url":"https://api.github.com/users/caulfield/following{/other_user}","gists_url":"https://api.github.com/users/caulfield/gists{/gist_id}","starred_url":"https://api.github.com/users/caulfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caulfield/subscriptions","organizations_url":"https://api.github.com/users/caulfield/orgs","repos_url":"https://api.github.com/users/caulfield/repos","events_url":"https://api.github.com/users/caulfield/events{/privacy}","received_events_url":"https://api.github.com/users/caulfield/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-05T19:27:24Z","updated_at":"2015-07-14T22:28:53Z","closed_at":"2015-07-14T22:28:53Z","body":"Hi.\r\n\r\nAfter rails 4.2 support we can refactor this code and use active job framework\r\nhttps://github.com/lynndylanhurley/devise_token_auth/blob/master/app/models/devise_token_auth/concerns/user.rb#L29\r\n\r\nI think this feature is complex and I want to discuss implementations.\r\n\r\nThe idea is to add configuration variable `Devise.config.use_active_job_for_token_expiring` and if this value truthy we will add new delayed job (defined by user and client_id) after token creating\r\n\r\nAnother one is check ActiveJob::Base.queue_adapter and add this behaviour automatically.\r\n\r\nAny thoughts about it and/or new ideas are welcome"}}