We would like to link user private document (user profile, etc.) using username.
The link above suggested to use external authentication source (Google, Facebook, etc.) as a workaround. However, when I look at the user account document in DB created from Google and Facebook login, I am not sure how the username was picked.
Google OpenID Connect
Facebook Test User
If I use the same Google account to login to a different sync_gateway, do I get assigned the same username in both sync_gateway?
If not, how do I ID user's private document? Using Email address instead then?
On second thought, doesn't the URL redirect will kill this approach?