module Restforce::Concerns::Authentication

def authentication_middleware

Internal: Determines what middleware will be used based on the options provided
def authentication_middleware
  if username_password?
    Restforce::Middleware::Authentication::Password
  elsif oauth_refresh?
    Restforce::Middleware::Authentication::Token
  elsif jwt?
    Restforce::Middleware::Authentication::JWTBearer
  elsif client_credential?
    Restforce::Middleware::Authentication::ClientCredential
  end
end