v141 · miscellaneous

FedCM: Alternative Fields in Account Selection

Adds support for phone numbers and usernames, in addition to or instead of a user's full name and email address as identifiers for disambiguating accounts in the account selector. Also, makes these new fields available for websites to affect the disclosure text.

concepts

  1. Alternative Fields

    FedCM IdP can surface alternative identifiers in the account chooser — useful for sites where users know themselves by handle, not email.

  2. Phone Identifier

    Toggle which alternative fields the IdP returns (tel, username, email, name) and watch the chooser refit. The change unblocks phone-first IdPs (Truecaller, Snapchat, WhatsApp Login) from FedCM adoption.

  3. Disclosure Text

    The site-side fields parameter customises the FedCM consent sentence. Tick combinations and see the disclosure refit — "share phone number and username" instead of the old "share email and name" assumption.

  4. Identity Card Preview

    Mock FedCM account-selector editor — toggle which fields the IdP returns (name, email, phone, username, picture) and watch a browser-chrome-style picker card update live. Shows the IdentityProviderAccountList JSON format and the corresponding credentials.get() call.

why it shipped

Some identity providers do not use email addresses and full names to identify users. This makes it easier for such IdPs to adopt FedCM.

references