Skip to content

Add Dexie cloud but still allow for anonymous usage #2056

Answered by andersr
andersr asked this question in Q&A
Discussion options

You must be logged in to vote

I found the following in another discussion, which is an explanation of what actually happens when setting reqiureAuth to false and I think is the answer I am looking for.

Yes, that's a scenario in dexie cloud by setting { requireAuth: false } in the options to db.cloud.configure().

The scenario is this:

  1. User loads your app.
  2. Cloud is connected to anonymously and if there is any data in the public realm this will be synced down to the client.
  3. User interacts with your application and can create and mutate own data but that data is not yet synced to server.
  4. User actively authenticates. Now the user data can be either synced up to cloud or thrown away and replaced by the persisted data for …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andersr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant