class Doorkeeper::TokensController

def authorize_response

def authorize_response
  @authorize_response ||= begin
    before_successful_authorization
    auth = strategy.authorize
    after_successful_authorization unless auth.is_a?(Doorkeeper::OAuth::ErrorResponse)
    auth
  end
end