Posh-GitHub
Posh-GitHub copied to clipboard
new-githuboauthtoken doesn't work (assumption: when 2FA turned on?)
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