Skip to interview prep
Apexed

42. Why is automatically linking two sign-in providers solely because they return the same email address risky?

HardIdentity & access

Technical
Show model answer

Email addresses can change, be reassigned or have different verification guarantees across providers. Matching text is not necessarily proof that the identities should control the same existing account.

Use the application's reviewed linking flow with appropriate proof of control, stable provider identity and reauthentication where required. Test address changes and already linked identities using fictional accounts, and avoid silently transferring ownership based on an unverified profile field.

What interviewers listen for

  • Distinguish email text from identity proof
  • Require reviewed account-linking evidence
  • Test changes and existing links
Why is automatically linking two sign-in providers solely because they return the same email address risky — Cybersecurity interview question — Apexed