DhanushNehru / DhanushNehru/CustomCodeEditor

Error when using the same email for both Google and GitHub sign-ins

Offen
#141 10 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@tusharshah21 arbeitet bereits daran.

Seit 18.10.2024.

bug hacktoberfest hacktoberfest-accepted help wanted
Vorherrschende Sprache
JavaScript
Sterne
73
Forks
65
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.