using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace API.Extensions
{
    public static class ClaimsPrincipalExtentensions
    {
      public static string RetrieveEmailFromPrincipal(this ClaimsPrincipal user){
          return user.FindFirstValue(ClaimTypes.Email);
      }
    }
}