private Task <IPrincipal> AuthenticateAsync(string token)
 {
     try
     {
         return(TokenServices.AuthenticateJwtToken(token));
     } catch
     {
         return(null);
     }
 }