DhanushNehru / DhanushNehru/CustomCodeEditor
Error when using the same email for both Google and GitHub sign-ins
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
When a user tries to sign in with both Google and GitHub using the same primary email address, it causes a database conflict and raises an error. This is likely because the email is already stored in the database when they first use Google sign-in, and attempting to log in via GitHub with the same email results in a duplicate entry.
Checkout this PR for reference https://github.com/DhanushNehru/CustomCodeEditor/pull/139
**Steps to Reproduce:**
Sign up with Google using an email.
Try signing in with GitHub using the same primary email.
**Expected Behavior:**
The user should be able to sign in with either Google or GitHub using the same email without raising an error.
**Actual Behavior:**
An error occurs due to a conflict in the database for the same email being linked to different sign-in providers.
Contributor guide
Assessment
This issue has not been assessed yet.