Hey,
I want to handle custom session expiration, but when Sync Gateway returns 401, I'm getting "Processed 0/0" task status.
Everything is based on Phonegap TodoLite example, with difference that I'm using custom session cookie instead of facebook token, so my sync definition looks similar to this:
source : {
"headers" : "SyncGatewaySession=a8s7df69a87s6d9f7a98s766df97a6s"
},
target : "my_db",
continuous : true
I've tried also with original TodoLite example, connecting it to my sync gateway and removing session cookie from database. Result is the same. 401 from sync gateway, auth-challenge handler is not called.