I use Couchbase Lite for Android.
I use cookie authorization in CouchDB. In Couchbase Lite I set cookies by method Replication.setCookie(), and it works fine until they are expired.
I can’t find any API callback, which will notify me that the replication gets unauthorized access error. In logcat I see error that the client is unauthorized, but it happens after ChangeListener notifies me about changes it’s going to process.
How can I check that the cookies are expired and the replication is stuck? Or I have to do it manually?