Hi,
I am creating a Node JS API that should serve as access point to the SyncGateway server for a web page.
The Couchbase database is already served through a mobile app (www.diveplanapp.com), but now I am building the related web-app (app.diveplanapp.com).
I have the users authenticating through Facebook and I am now stuck in the authentication process.
In particular I am already registering the user with a POST to:
{db}/_facebook
and receiving the response:
{ authentication_handlers: [ ‘default’, ‘cookie’ ],
ok: true,
userCtx:
{ channels: … }
but from this point how should I make the next requests to SyncGateway as the registered user?
I use CouhBase 4 community and SyncGateway 1.2.1.
Thanks for your feedback.
Luca