You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helpers.ThrowIfConditionFailed(()=>context.Identity.FindFirst(ClaimTypes.NameIdentifier)?.Value=="fccf9a24999f4f4f","Id is not valid");
24
24
Helpers.ThrowIfConditionFailed(()=>context.Identity.FindFirst(ClaimTypes.Name)?.Value=="AspnetvnextTest AspnetvnextTest","Name is not valid");
25
25
Helpers.ThrowIfConditionFailed(()=>context.ExpiresIn.Value==TimeSpan.FromSeconds(3600),"ExpiresIn is not valid");
26
-
Helpers.ThrowIfConditionFailed(()=>context.User!=null,"User object is not valid");
27
-
Helpers.ThrowIfConditionFailed(()=>context.Identity.FindFirst(ClaimTypes.NameIdentifier)?.Value==context.User.SelectToken("id").ToString(),"User id is not valid");
26
+
Helpers.ThrowIfConditionFailed(()=>context.Identity.FindFirst(ClaimTypes.NameIdentifier)?.Value==context.User.GetString("id"),"User id is not valid");
0 commit comments