Jici
4
Yes while logged in, the oauth will be added to the current user auth (but from what I remember from very old testing, adding more than one oauth2 (example google and ms) will create issue with keeping connection alive (not sure however if this is when you are logged in with google and add ms instead of bubble and add more than 1 oauth. We tested this like 5 years ago… ). According to doc link you provided, this should always be an issue to add more than 1 oauth2 to an existing user as the most recent one will be used.
What I mean is that if user is not logged in, and you try to log in with oauth2 while user is already created with the same email as the oauth2 provider use, you will get an error.
Email already exists: However, if a user tries to sign up by linking an account with OAuth and another user in the database already has the same email as the one provided by the external service, the process won’t succeed. Instead, the user will receive a notification about the issue.