Can someone pretty please help guide me to the correct sync permissions for the most basic Realm Sync app? I want an authenticated user to be able to read and write their own data. That’s it. There’s no public data. No other rules.
The defaults that come with the Realm + Swift template are the following:
{
"%%partition": "%%user.id"
}
And the partition key is also the default, set to " _partition, string, required".
When I try my basic test app, the console spits out the error:
“user does not have permission to sync on partition (ProtocolErrorCode=206)”
Setting both fields to “true” allows me to sync, but this is insecure, correct?
I also tried:
{
"%%user.id": "%%partition"
}
Which I found in the define sync rules documentation, but no luck there either.
Thanks a lot.