I have UWP app backend is azure mobile app service. I have configured azure b2c as authnetication. from last six month it is working fine.
on my client side i am using DefaultManager.CurrentClient.CurrentUser.UserId which give me userid {sid:value} format.
on server side this code was also giving {sid:value} and provider was aad
var identity = User as ClaimsPrincipal;
var userClaim = identity?.Claims.FirstOrDefault(b => b.Type == ClaimTypes.NameIdentifier);
from 20 December it is giving directly from b2c.
when i send the same request to local code it works as expected. but if i debug using attaching to azure mobile app. i am getting the same different value.
Now from 21 Jan on server it is again giving userid as {sid:value} format.
what is the correct format i can not keep changing my code.
https://github.com/Azure/azure-mobile-apps-net-server/issues/33