lib/doorkeeper/request/token.rb



# frozen_string_literal: true

module Doorkeeper
  module Request
    class Token < Strategy
      delegate :current_resource_owner, to: :server

      def pre_auth
        server.context.send(:pre_auth)
      end

      def request
        @request ||= OAuth::TokenRequest.new(pre_auth, current_resource_owner)
      end
    end
  end
end