You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when a user unlinks all oauth providers they cannot login anymore. This is expected, but if they try to login with a new/different provider that has the same email address, the user will get an error along the lines of 'an account already exists with this email, login to that one and link it this provider'. This blocks them from logging in and renders the existing account inaccessible.
I suggest adding a simple check, both frontend and backend, before removing a provider. If that provider is the users' only method of logging in (the only auth provider linked), display an error.
Shall I create a pull request for this or is another way of handling this preferred?
💚
The text was updated successfully, but these errors were encountered:
Currently when a user unlinks all oauth providers they cannot login anymore. This is expected, but if they try to login with a new/different provider that has the same email address, the user will get an error along the lines of 'an account already exists with this email, login to that one and link it this provider'. This blocks them from logging in and renders the existing account inaccessible.
I suggest adding a simple check, both frontend and backend, before removing a provider. If that provider is the users' only method of logging in (the only auth provider linked), display an error.
Shall I create a pull request for this or is another way of handling this preferred?
💚
The text was updated successfully, but these errors were encountered: