github_cli icon indicating copy to clipboard operation
github_cli copied to clipboard

How to specify OTP token when calling "gcli auth create"? (MFA)

Open slavafomin opened this issue 6 years ago • 2 comments
trafficstars

Hello!

Thank you for this great tool!

However, is there a way to specify OTP token when calling gcli auth create? I'm using two-factor authentication on my GitHub account.

Here's the related documentation from GitHub: Using the OAuth Authorizations API with two-factor authentication

Thanks!

slavafomin avatar Oct 26 '19 12:10 slavafomin

Hi Slava,

Thanks for your interest in this gem. The github_cli hasn't been released in years and I have just recently finished rewriting it. Unfortunately, 2FA isn't supported in this gem as of yet. I'd be really happy to accept PR implementing it. You can use Two Factor as a starting point. Thanks!

piotrmurach avatar Oct 27 '19 22:10 piotrmurach

@piotrmurach thank you for your effort. As much as I would like to help, I'm not familiar with Ruby. I hope someone more suitable for this stack would be able to lend a hand here.

slavafomin avatar Oct 28 '19 08:10 slavafomin