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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user