demo · v143

Error name explorer

FedCM's IdentityCredentialError.code was renamed to .error — the value enumeration was extended at the same time. This page catalogues every possible error string, what it means, and how to translate it into UX. Pick an error from the list to see the old vs new handler shape and a sample debounced retry strategy.

Pick an error

before v143 — err.code

      
after v143 — err.error

      
recommended UX

Full catalogue

Live probe

Does this browser expose .error on IdentityCredentialError?



  
try {
  await navigator.credentials.get({ identity: { providers: [...] }, params: { nonce } });
} catch (e) {
  // v143+
  if (e.name === "IdentityCredentialError") {
    console.log("FedCM rejected:", e.error);   // .error, not .code
  }
}

see also