public static void Add(TokenSys token) { try { ActiveTokens.RemoveAll(item => item.Email == token.Email || token.TokenGuid == item.TokenGuid); } catch (NullReferenceException) { ActiveTokens = new List <TokenSys>(); } ActiveTokens.Add(token); }
public static bool ThisTokenIsValid(TokenSys token) { return(ThisTokenIsValid(token.TokenGuid)); }