IdentityExtensions.GetEmail Method

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

GetEmail(ClaimsIdentity)

Get the email if it exists, otherwise null.

public static string GetEmail(this ClaimsIdentity identity)

Parameters

identity
System.Security.Claims.ClaimsIdentity

A claims-based identity.

Returns

string