I have updated couchbase sync gateway user’s credentials in sync_gateway.json. But still, Couchbase lite able to connect with old credentials and even able to use sync gateway public rest API.
How much time it will take to effect with new credentials. is there any way to effect it immediately?
@itssrinadh, You need to update sync gateway user credential using admin rest api. You can delete and create new user and then you can update Sync gateway config. https://docs.couchbase.com/sync-gateway/current/refer/rest-api-admin.html#/user. couchbaselite does not use sync gateway config to connect. You need to use couchbase lite library and configure replication to authenticate sync gateway.
It should right away works with new credentials if it is updated with right credentials, no need to wait to take an effect