<@U04UQ68083H> I'm facing an edge case. If a user ...
# ory-copilot
l
@chilly-king-10285 I'm facing an edge case. If a user initially signs in with their email and later attempts to sign in with their social account using the same email, what will happen? In my scenario, the user is redirected back to the login page without any messages or errors.
c
A message from kapa.ai
In Ory, automatic account linking is not available due to security reasons. If a user initially signs up with their email and later attempts to sign in with a social account using the same email, the system will not automatically link these accounts. This is to prevent malicious actors from potentially stealing user accounts. However, if the user is redirected back to the login page without any messages or errors, it could be due to a configuration issue. For instance, Ory redirects users back to the registration page after a successful OIDC flow when some identity traits, such as a phone number, couldn't be mapped using the data received from the social sign-in provider and require manual input from the user. If the Jsonnet configuration for the social sign-in provider is incorrect and Ory can't map the data correctly, the user sees no input fields and the registration page gets stuck in a redirect loop. To fix the redirect loop, you need to adjust the Jsonnet configuration for the social sign-in provider so that the data from the provider gets mapped correctly to the Identity Schema. You can read more about this in the [Ory documentation](https://www.ory.sh/docs/troubleshooting/troubleshooting-social-sign-in#redirect-loops-after-successful-registration). If the issue persists, you may want to check the troubleshooting guide for common problems such as Redirect URI mismatch, Redirect loops during registration, and Domain verification issues. You can find more information on this in the [Ory documentation](https://www.ory.sh/docs/kratos/social-signin/github#troubleshooting).