Check whether an OTP code is correct, unexpired, and unused using the Laravel SDK. Use this after the user submits the code they received via WhatsApp.Documentation Index
Fetch the complete documentation index at: https://docs.hypersender.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| chatId | string | yes | WhatsApp chat ID that received the OTP. |
| code | string | yes | The OTP code entered by the user. |
Validate the code
Common failure reasons
- Code does not match the active OTP
- Code expired based on
expiresvalue - Code already used (single-use)
- No active OTP found for the
chatId