You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
10. Insert some initial test data (optional, can be done via SQLite clients)
150
144
151
-
**Why these specific policies?**
152
-
CloudSync uses `INSERT...ON CONFLICT DO UPDATE` for field-by-field synchronization. During conflict detection, PostgreSQL's RLS may compare `auth.uid()` against the EXCLUDED row's `user_id` (which has the default value) instead of the existing row's `user_id`. The helper function explicitly looks up the existing row's owner to work around this issue. See `docs/postgresql/RLS.md` for detailed explanation.
153
-
154
145
### Step 5: Get JWT Tokens for Two Users
155
146
156
147
Get JWT tokens for both test users by running the token script twice:
0 commit comments