Show provider label instead of id in sign in prompt, fixes #117461

This commit is contained in:
Rachel Macfarlane
2021-02-23 11:47:04 -08:00
parent 1647961f7d
commit 6fa58b5a86

View File

@@ -242,7 +242,8 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
}
} else {
if (!silent) {
const isAllowed = await this.loginPrompt(providerId, extensionName);
const providerName = await this.authenticationService.getLabel(providerId);
const isAllowed = await this.loginPrompt(providerName, extensionName);
if (!isAllowed) {
throw new Error('User did not consent to login.');
}