You can use this:
UserName := Info.Profile.Source['user'].AsString;
But if instead user you set the preferred_username claim, then you can read it directly from Info.Profile.PreferredUserName.
You can use this:
UserName := Info.Profile.Source['user'].AsString;
But if instead user you set the preferred_username claim, then you can read it directly from Info.Profile.PreferredUserName.