demo · v136

Account Card Builder

Edit any field an IdP can return — id, name, email, given_name, tel, username, picture, label_hint — and the preview re-renders the FedCM account chooser tile with the alternative-fields rules: tel or username can take the second-line slot when email is empty.

chooser preview

resolved second-line slot

JSON the IdP returns

resolution rules

  1. If email is present, the chooser uses it.
  2. Otherwise, if tel is present, it's used (phone-only IdPs work).
  3. Otherwise, if username is present, it's used.
  4. Otherwise the second line is blank.

see also