Cannot connect to Github account using octokit

Viewed 284
1 Answers

I had the same problem. I solved problem just like this:

client.user(ENV['GITHUB_LOGIN'], :headers => { "X-GitHub-OTP" => "2fa-token"})

If you don't have an ENV['GITHUB_LOGIN'], just type Github username

client.user('codescaptain', :headers => { "X-GitHub-OTP" => "2fa-token"})
Related