diff --git a/OTPService.ValidateHotp.md b/OTPService.ValidateHotp.md new file mode 100644 index 0000000..cb5e017 --- /dev/null +++ b/OTPService.ValidateHotp.md @@ -0,0 +1,39 @@ +Namespace: `SimpleOTP` + +Assembly: `SimpleOTP.dll` + +Validates provided HOTP code with provided parameters. +```csharp +public static bool ValidateHotp(int otp, ref OTPConfiguration target, int toleranceSpan, bool resyncCounter); +``` +### Parameters +`otp` `Int32` + +HOTP code to validate. + +`target` [OTPConfiguration](https://github.com/XFox111/SimpleOTP/wiki/OTPConfiguration) + +OTP configuration for check codes generation. + +`toleranceSpan` `Int32` + +Counter span from which OTP codes remain valid. + +`resyncCounter` `Boolean` + +Defines whether method should resync