class Doorkeeper::Request::AuthorizationCode

def grant

def grant
  AccessGrant.by_token(parameters[:code])
end

def request

def request
  @request ||= OAuth::AuthorizationCodeRequest.new(
    Doorkeeper.configuration,
    grant,
    client,
    parameters
  )
end