Go to file
nico feb853d06e fix(auth): improve OTP error handling and add health check endpoint
Option 2 - Improve Error Handling:
- Track WA success status and error messages in login route
- Return debug info (including OTP code) only in non-production
- Show descriptive message when WhatsApp fails to send
- Better error categorization (HTTP error vs logic error vs connection)

Option 3 - Health Check Endpoint:
- Create /api/health/otp endpoint for OTP service diagnostics
- Support test mode with query params: ?test=true&number=6281234567890
- Check token configuration (configured vs placeholder)
- Measure response time and validate service response
- Return comprehensive status for debugging OTP issues

Usage:
- Basic check: GET /api/health/otp
- Test send: GET /api/health/otp?test=true&number=6281234567890

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-06 16:27:29 +08:00
2025-05-19 17:00:43 +08:00
2025-02-15 21:56:18 +08:00
2026-03-06 11:19:45 +08:00
2025-02-16 16:01:12 +08:00
2026-03-12 12:11:10 +08:00
2025-02-15 21:56:18 +08:00
2025-12-16 10:19:15 +08:00
2025-02-21 06:40:29 +08:00
2025-05-23 11:33:59 +08:00
2025-02-15 21:56:18 +08:00
2026-02-05 12:34:31 +08:00
2026-02-05 12:34:31 +08:00
2025-02-16 16:01:12 +08:00
2025-02-16 16:01:12 +08:00
2026-01-23 16:51:35 +08:00
2025-07-18 17:42:10 +08:00

Failed to Generate README

Description
No description provided
Readme 37 MiB
Languages
TypeScript 99.4%
HTML 0.4%