Administrator login with enhanced user verification and admin status validation
is_admin: true in the user database.
Non-admin users will receive a 403 Forbidden response even with valid
credentials.Initial Authentication
User ID Extraction
Database Lookup
/rest/v1/users?id=eq.<UUID> with header Accept-Profile: users to fetch details from the users.users table (ensure the users schema is exposed in Supabase Settings → API).Admin Verification
is_admin field is checked in the database responseResponse Assembly
users table has proper RLS policies