Checks · AUTH-003
AUTH-003 · Supabase user_metadata used for roles
P1 Needs attentionWhy it matters
Users can edit their own user_metadata. A role stored there is chosen by the user.
How we detect it
Code reads role from user_metadata.
How we fix it
Store roles in app_metadata or a roles table that users cannot write.
Can it be fixed automatically? Yes, with a template change