i learned from todolite example how the auth flow is working with facebook and after the token & user info are available, how it is registered in Sync-Gateway creating a user and a channel.
now i am interested in doing approximately the same with my own Auth server, using a token as well.
The question is wether is possible to use my token with Sync-Gateway's _facebook logic or i have to completely change the way to get back to /dbname/_session atemmpt 1, then get 404 and try again to create a user session in Sync-Gateway ?
by the way, it would be necessary as i understood, to have theis requests implemented by by app server API from localhost to Sync Gatway's admin port.
So, in order to do the really cool SYNC Couchbase Lite offers, there's quite a bot of plumbing the auth to have it accomplished in a straghtforward way.
Please let me know your thoughts on this.