dwindown
0d29c953c1
Implement OTP-based email verification system
Add custom email verification using 6-digit OTP codes via Mailketing API:
Database:
- Create auth_otps table with 15-minute expiry
- Add indexes and RLS policies for security
- Add cleanup function for expired tokens
- Insert default auth_email_verification template
Edge Functions:
- send-auth-otp: Generate OTP, store in DB, send via Mailketing
- verify-auth-otp: Validate OTP, confirm email in Supabase Auth
Frontend:
- Add OTP input state to auth page
- Implement send/verify OTP in useAuth hook
- Add resend countdown timer (60 seconds)
- Update auth flow: signup → OTP verification → login
Features:
- Instant email delivery (no queue/cron)
- 6-digit OTP with 15-minute expiry
- Resend OTP with cooldown
- Admin-configurable email templates
- Indonesian UI text
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-02 13:27:46 +07:00
..
2025-12-23 18:06:40 +07:00
2025-12-23 16:59:13 +07:00
2025-12-24 00:12:04 +07:00
2025-12-25 13:57:53 +07:00
2025-12-25 22:29:48 +07:00
2025-12-25 13:57:53 +07:00
2025-12-28 13:54:16 +07:00
2025-12-28 21:36:01 +07:00
2025-12-28 21:36:01 +07:00
2025-12-30 17:07:31 +07:00
2025-12-23 01:32:23 +07:00
2025-12-27 01:17:47 +07:00
2025-12-27 01:17:47 +07:00
2025-12-27 01:17:47 +07:00
2026-01-01 23:54:32 +07:00
2026-01-01 23:54:32 +07:00
2026-01-01 23:54:32 +07:00
2026-01-01 23:54:32 +07:00
2026-01-02 13:27:46 +07:00
2026-01-02 13:27:46 +07:00
2025-12-26 17:05:25 +07:00
2025-12-31 23:31:23 +07:00
2026-01-01 01:15:09 +07:00