I have an app that doesn't require a login, therefore there is no session token. I have a database with static data which needs no security (read only). How do I access this, as when i create a database service it requires the session token.
I have an app that doesn't require a login, therefore there is no session token. I have a database with static data which needs no security (read only). How do I access this, as when i create a database service it requires the session token.
Hello Terry,
Please clarify, did you set the collection setting "Secure collection" = true?
Bu default, database rows are available for all users without sessionToken.
Could you please provide us with more details, screenshots or exact steps to reproduce this problem?
I haven't set Secure Collection = true, but I see a header for session token in the service.
Are you saying that I can leave that setting blank?
Yes, you can leave it blank
Terry,
In case you want to identify the user despite having no login required you can read the device ID of the user:
var mydevice = device.uuid;
localStorage.setItem("device_uuid", mydevice);
Thanks for the update Bernie.
In this situation, however, it is a completely anonymous app.