Overview
Account linking allows users to authenticate with multiple SSO providers to the same user. This is automatically enabled in Nile Auth, and will be used if you have multiple SSO providers configured or if you choose to support both email/password and SSO authentication.How it works
When a user first signs up, no matter what authentication method they use, they are assigned a unique user ID that is linked to their email address. You can see this in theusers.users table:
users.credentials table:
users.users table are not affected by account linking. This means that the user will still have the same user ID,
the same email address, and the same user details such as first_name, last_name, and picture. The only thing that changes is the addition of
the new authentication method in the users.credentials table.