Loading preferences...
How User Preferences Works With Supabase
This page reads your authenticated user record from Supabase Auth and lets you safely update account details.
- 1. Session check: the page reads the stored auth token from the browser and confirms an active session.
- 2. Load user: user data is fetched from Supabase (`GET /auth/v1/user`).
- 3. Profile updates: name, email, and permissions are saved with `PUT /auth/v1/user` (user metadata).
- 4. Password updates: password is changed securely through Supabase using `PUT /auth/v1/user`.
- 5. Sign out: logout clears local auth tokens and ends session in Supabase.