public TotpValidator() { this.totpGenerator = new TotpGenerator(); }
/// <summary> /// Get current user's code /// </summary> public static string Generate(string secret) { var totpg = new AspNetCore.Totp.TotpGenerator(); return(totpg.Generate(secret).ToString()); }