HomePhabricator

Read both email addresses and Google Account IDs from Google OAuth

Authored by epriestley on Feb 24 2020, 9:21 PM.

Description

Read both email addresses and Google Account IDs from Google OAuth

Summary:
Ref T13493. Google returns a lower-quality account identifier ("email") and a higher-quality account identifier ("id"). We currently read only "email".

Change the logic to read both "email" and "id", so that if Google ever moves away from "email" the transition will be a bit easier.

Test Plan: Linked/unlinked a Google account, looked at the external account identifier table.

Maniphest Tasks: T13493

Differential Revision: https://secure.phabricator.com/D21028