Posh-GitHub icon indicating copy to clipboard operation
Posh-GitHub copied to clipboard

new-githuboauthtoken doesn't work (assumption: when 2FA turned on?)

Open petemounce opened this issue 8 years ago • 0 comments

I assume this happens because 2FA is turned on, but don't know based on just the output here.

New-GitHubOAuthToken -username petemounce -Password '<my correct password>' -verbose
VERBOSE: POST https://api.github.com/authorizations with -1-byte payload
New-GitHubOAuthToken : An unexpected error occurred (bad user/password?)
At line:1 char:1
+ New-GitHubOAuthToken -username petemounce -Password 'v ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-GitHubOAuthToken

petemounce avatar Jul 13 '16 13:07 petemounce