This post describes how to tie multiple accounts to a single $uid
in a users
collection.
Here\'s those security rules:
If you want to tie multiple accounts to a single uid, you'll need to generate your own tokens.
You could, for example, use Firebase.push to generate unique ids for each user, and use those in your tokens. This is no simple matter as it requires that you have:
In many use cases, this could even counter-productive; users will log in with a single auth method in most cases and may even wish to use diff auth methods to create separate accounts. So it may not be worth the trouble unless you have an app that depends on sharing data between providers.