Closed ruisilva450 closed 6 years ago
Apologies for the error in the sample. The property is available, but only as part of the TimeBasedPasswordGenerator type as it does not apply to CounterBasedPasswordGenerator. The sample can be fixed by casting the generator obtained from the factory to TimeBasedPasswordGenerator.
System.Diagnostics.Debug.WriteLine($"Password: {passwordGenerator.GeneratedPassword} valid until {((TimeBasedPasswordGenerator)passwordGenerator).ValidUntilUtc.ToLocalTime()}");
Hi, When using the code from you sample about the Time Based Factory, you are getting ValidUntilUtc property from the generator object. I can't find this property when trying to do the same.