instance method
Gem::GemcutterUtilities#mfa_unauthorized?
mfa_unauthorized?(response)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 126
def mfa_unauthorized?(response)
response.is_a?(Gem::Net::HTTPUnauthorized) && response.body.start_with?("You have enabled multifactor authentication")
end
No documentation available