How to authenticate with user/session info when creating a replicator with couchbase-lite-core

Ok, it should be straightforward! Thanks!

However… I’m still very confused with couchbase data model.

I believed that sync-gateway acted over couchbase-server. What’s the point of having an API on sync gateway to create users and create databases if then they are not actually created in database engine?

My goal is to have a dynamic system in which I create databases on demand for new users. I don’t want to pollute this thread with data model questions. I have another thread with a related question. Maybe you could help me understand -> Try to use 5 or less buckets in Couchbase. Never more than 10

Thanks!

Nuno