mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
Use toLower for Microsoft auth labels (#245732)
Fixes https://github.com/microsoft/vscode/issues/242510
This commit is contained in:
committed by
GitHub
parent
1c41445f09
commit
28c596a419
@@ -368,7 +368,7 @@ export class MsalAuthProvider implements AuthenticationProvider {
|
||||
id: result.account?.homeAccountId ?? result.uniqueId,
|
||||
account: {
|
||||
id: result.account?.homeAccountId ?? result.uniqueId,
|
||||
label: result.account?.username ?? 'Unknown',
|
||||
label: result.account?.username.toLowerCase() ?? 'Unknown',
|
||||
},
|
||||
scopes
|
||||
};
|
||||
@@ -381,7 +381,7 @@ export class MsalAuthProvider implements AuthenticationProvider {
|
||||
scopes: [],
|
||||
account: {
|
||||
id: account.homeAccountId,
|
||||
label: account.username
|
||||
label: account.username.toLowerCase(),
|
||||
},
|
||||
idToken: account.idToken,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user