mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-25 23:15:40 +00:00
f82c38fb0557188f81c56bfca410107f9384b339
Issue: Dashboard was throwing 400 Bad Request when updating profiles table Root Cause: - Dashboard tried to update profiles.email_verified column - But this column doesn't exist in profiles table - Migration only has: username, email, full_name, avatar_url, referral fields Solution: - Removed sync logic that updates profiles.email_verified - Email verification is now ONLY read from Supabase Auth (user.email_confirmed_at) - No need to duplicate verification status in profiles table Benefits: - No more 400 errors - Single source of truth (Supabase Auth) - Cleaner code, less database writes UI still works correctly: - Account Status card checks: user?.email_confirmed_at || profile?.email_verified - Since user.email_confirmed_at exists, profile.email_verified is never needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
TypeScript
88.4%
Rust
4.1%
PLpgSQL
3.8%
JavaScript
2.2%
CSS
0.8%
Other
0.6%