IdentityExtensions.GetId Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetId(ClaimsIdentity)

Get the user id if it exists, otherwise null.

public static string GetId(this ClaimsIdentity identity)

Parameters

identity
System.Security.Claims.ClaimsIdentity

Returns

System.String