Exception: Octokit::OneTimePasswordRequired

Inherits:
ClientError show all
Defined in:
lib/octokit/error.rb

Overview

Raised when GitHub returns a 401 HTTP status code and headers include "X-GitHub-OTP"

Instance Method Summary collapse

Methods inherited from Error

#documentation_url, #errors, from_response, #initialize

Constructor Details

This class inherits a constructor from Octokit::Error

Instance Method Details

#password_deliveryString

Delivery method for the user's OTP



168
169
170
# File 'lib/octokit/error.rb', line 168

def password_delivery
  @password_delivery ||= delivery_method_from_header
end