{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/548","repository_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth","labels_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/548/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/548/comments","events_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/548/events","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/548","id":136552103,"number":548,"title":"Yielding Resource to Overriding Controller","user":{"login":"bezreyhan","id":6013763,"avatar_url":"https://avatars.githubusercontent.com/u/6013763?v=3","gravatar_id":"","url":"https://api.github.com/users/bezreyhan","html_url":"https://github.com/bezreyhan","followers_url":"https://api.github.com/users/bezreyhan/followers","following_url":"https://api.github.com/users/bezreyhan/following{/other_user}","gists_url":"https://api.github.com/users/bezreyhan/gists{/gist_id}","starred_url":"https://api.github.com/users/bezreyhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezreyhan/subscriptions","organizations_url":"https://api.github.com/users/bezreyhan/orgs","repos_url":"https://api.github.com/users/bezreyhan/repos","events_url":"https://api.github.com/users/bezreyhan/events{/privacy}","received_events_url":"https://api.github.com/users/bezreyhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-26T00:02:49Z","updated_at":"2016-02-26T02:39:27Z","closed_at":null,"body":"I'm trying to extend the create action for the Sessions Controller\r\n\r\nWhen I do this:\r\n\r\n```\r\nclass SessionsController < DeviseTokenAuth::SessionsController\r\n\r\n  def create\r\n    super do |resource|\r\n      puts resource\r\n    end\r\n  end\r\nend\r\n```\r\n\r\n`resource == nil`\r\n\r\nhowever `@resource` does return the resource.\r\n\r\nIs this the expected behavior?\r\n\r\nAlso, I was wondering how I can get access to the token that will be returned to the user? I was able to access it via `@token`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/comments/189085267","html_url":"https://github.com/lynndylanhurley/devise_token_auth/issues/548#issuecomment-189085267","issue_url":"https://api.github.com/repos/lynndylanhurley/devise_token_auth/issues/548","id":189085267,"user":{"login":"richardmable","id":15109651,"avatar_url":"https://avatars.githubusercontent.com/u/15109651?v=3","gravatar_id":"","url":"https://api.github.com/users/richardmable","html_url":"https://github.com/richardmable","followers_url":"https://api.github.com/users/richardmable/followers","following_url":"https://api.github.com/users/richardmable/following{/other_user}","gists_url":"https://api.github.com/users/richardmable/gists{/gist_id}","starred_url":"https://api.github.com/users/richardmable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardmable/subscriptions","organizations_url":"https://api.github.com/users/richardmable/orgs","repos_url":"https://api.github.com/users/richardmable/repos","events_url":"https://api.github.com/users/richardmable/events{/privacy}","received_events_url":"https://api.github.com/users/richardmable/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T02:39:27Z","updated_at":"2016-02-26T02:39:27Z","body":"I literally just asked the same question! See #549 \r\nI've also had issues with not being able to pass a super block to a DeviseTokenAuth controller, doesn't seem to do anything, and I'm pretty sure I'm inheriting it correctly."}}