@swift-chef-97535 I talked to
@microscopic-forest-58980 on private message.
The problem is that there is an account with a password method set up, that is not linked to google. when you try to sign into google, it re-uses the email, which fails because that email already exists. We do not automatically link these two accounts for security reasons, which is why you have to explicitly sign in using password, then link the google account. This prevents account takeover attacks.
In summary:
1. Sign up to ory cloud using email + password with your gmail account
2. Never linked the google account to that ory cloud account
3. Now signing in using google - the email address is the same but the authentication method is different
To resolve this (we need to make the error message much better):
1. Sign in to your ory cloud account using email + password - if you forgot your password, reset your password
2. Go to settings
3. Click on “link google”
4. Link the google account
5. Sign out
6. Sign in usin google
That should fix it.
For more details on the dangers of automatic account linking, see:
https://www.ory.sh/docs/guides/social-signin/overview#preventing-account-linking
Takeaway for us is to improve the error message and indicate what steps the user has to take to sign into their account.