Skip to content

Commit cf1b0ce

Browse files
preferred_username should be... preferred
Apparently it's possible for preferred_username to be like `foo@mybiz.com` while `email` is set to `foo@mybizemail.com`... This is the more correct ordering.
1 parent 8ff37a6 commit cf1b0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/microsoft-authentication/src/AADHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export class AzureActiveDirectoryService {
536536
scope: scopeData.scopeStr,
537537
sessionId,
538538
account: {
539-
label: claims.email ?? claims.preferred_username ?? claims.unique_name ?? 'user@example.com',
539+
label: claims.preferred_username ?? claims.email ?? claims.unique_name ?? 'user@example.com',
540540
id,
541541
type: claims.tid === MSA_TID || claims.tid === MSA_PASSTHRU_TID ? MicrosoftAccountType.MSA : MicrosoftAccountType.AAD
542542
}

0 commit comments

Comments
 (0)