regen-network / regen-server

:seedling: Regen web server and database
https://api.regen.network
6 stars 5 forks source link

Error when trying to log in with google when google email is used by another user as main email #425

Closed blushi closed 5 months ago

blushi commented 7 months ago

Describe the bug Getting internal server error when trying to log in with google when google email is used by another user as main email.

To Reproduce

  1. Log in with email using some google email address (account A)
  2. Log out then log in with Keplr to another account (account B)
  3. From the settings page, connect to google using the same email address as in 1.
  4. Log out and try to log in via google with this email address, you will get an internal server error

Expected behavior You should be logged in with account B.


For Admin Use

blushi commented 5 months ago

closing in favor of: https://github.com/regen-network/regen-server/issues/433 per discussion during the architecture call, we should instead have uniqueness across Google email and main email and when connecting to google, set main email to google email.