Sync Gateway REST api questions


#1

Is there a way to disable the login alert when trying to request a document without authorization or session id? I would like to simply handle the error, but keep getting redirected with the alert.

Is there a way to get documents without user accounts?


#2

So I can answer my questions with creating a GUEST account in the configuration file and restart the sync gateway server. You can then assign the GUEST account to a public channel and assign documents to public.

https://developer.couchbase.com/documentation/mobile/current/guides/sync-gateway/authorizing-users/index.html#anonymous-access


#3

Just to emphasize that the GUEST account is meant for development environments . Would not recommend enabling this in a production environment.