pezkuwichain d00b830e0a fix: Sync email verification status from Supabase Auth
Root Cause:
- Dashboard was checking profiles.email_verified column
- But Supabase Auth uses user.email_confirmed_at field
- This caused verified emails to show as "Unverified"

Changes:
1. Dashboard now checks BOTH sources:
   - Primary: user.email_confirmed_at (Supabase Auth)
   - Fallback: profile.email_verified (profiles table)

2. Auto-sync profiles table:
   - When loading profile, sync email_verified from Auth
   - Updates profiles table if verification status differs

3. UI Improvements:
   - Show verification date in Account Status card
   - Display "Verified" badge next to email instead of button
   - Hide warning message if email is verified
   - Only show "Verify Email" button if truly unverified

This ensures consistent verification status across:
- Account Status card (top)
- Profile tab (email field)
- Security tab (warning message)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 03:59:06 +03:00
2025-10-22 18:05:19 -07:00
S
Description
No description provided
Readme MIT 107 MiB
Languages
HTML 75.2%
TypeScript 21.3%
Rust 1.9%
PLpgSQL 0.7%
JavaScript 0.6%
Other 0.2%