1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00

Updated validation methods signatures (#13)

Improved code coverage results
This commit is contained in:
2021-05-30 18:12:45 +03:00
committed by GitHub
parent f669201554
commit f866fb2c80
6 changed files with 38 additions and 28 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ OTPCode code = OTPService.GenerateCode(ref config);
### Validate code
```csharp
int codeToValidate = 350386;
bool isValid = OTPService.ValidateCode(codeToValidate, config, TimeSpan.FromSeconds(30)); // True
bool isValid = OTPService.ValidateTotp(codeToValidate, config, TimeSpan.FromSeconds(30)); // True
```
### Generate setup config