Trying to better understand how firebase works.
Consider this scenario :
App authenticates user through facebook as described here. https://www.firebase.com/docs/android/guide/login/facebook.html
public void onAuthenticated(AuthData authData) {
id = authData.getUid()
we want later to be able to connect with the same user with different provider like Twitter for instance.
So user now user authenticates with Twitter and authData.getUid() is the same as in facebook (same across providers guarantee - but not certain that this is how it works :)
question:
if now user uninstalls the app and installs it again and authenticates only with twitter the id = authData.getUid()
will be the same? so that we can retrieve the data for the user that we have stored earlier in users/id
. Also does that look like a good approach for multiple providers?