# frozen_string_literal: true

module Ripcord
  module Authentication
    class HTTPTokenAuth
      def initialize(token)
        @token = token
      end

      def apply_to(request, _payload_hash)
        request.add_field "Authorization", "Token token=#{@token}"
      end
    end
  end
end
