I have following scenario:
PouchDB sends user login info into application server:
POST /api/login
{user:'test', password:'test'}
Application server authenticates into Sync Gateway:
POST /sync_gateway/_sessions/
Obtained Cookie is being returned to angular application:
"SyncGatewaySession=89498ca5a159ff086a3cb1da2370eb36249936x5"
Question is how to configure PouchDB to authenticate with that cookie.
Ive tried setting cookie header but no luck.
Will appreciate any tips.