Simperium read-only API Key allows writing to cloud

96 Views Asked by At

I expected when initiating the simperium instance with the read-only key that I created that my application could read from the cloud storage but not write to it. I'm still able to write when using a read-only key. Is this a bug or am I doing something wrong?

1

There are 1 best solutions below

0
On

Simperium doesn't offer a readonly API key. Instead, it has the 'Default' and 'Admin' keys. The difference between them is:

  • Default key is used to generate tokens for user access
  • Admin key can be used by your own backend, and would allow you to sync data for multiple users.

You can read more about it here (Section: 'Access Tokens and API Keys').