public static string GenerateToken(string userName, int expireMinutes = 20)
 {
     if (_provider == null)
     {
         throw new NullReferenceException("Security provider not set");
     }
     return(_provider.GenerateToken(userName, expireMinutes));
 }