Skip to content

Commit 61cd8e3

Browse files
authored
Return GitHub PAT token from view model (#1241)
Fix a bug in the in-proc UI logic for returning the personal access token. We were accidentally returning the password field rather than the token field for PATs.
2 parents 73ddb8e + 7531d27 commit 61cd8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/GitHub/GitHubAuthentication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private async Task<AuthenticationPromptResult> GetAuthenticationViaUiAsync(
144144
case AuthenticationModes.Pat:
145145
return new AuthenticationPromptResult(
146146
AuthenticationModes.Pat,
147-
new GitCredential(userName, viewModel.Password)
147+
new GitCredential(userName, viewModel.Token)
148148
);
149149

150150
default:

0 commit comments

Comments
 (0)