v143 · miscellaneous
FedCM-Migration of nonce to params field & Renaming of IdentityCredentialError code attribute to error
Migration of nonce to params Field: The nonce parameter in navigator.credentials.get() is moving from a top-level field to the params object for better API design, extensibility, and maintainability. This structured approach simplifies parsing for Identity Providers, supports future-proofing without versioning, and aligns with modern API patterns. For Relyin
concepts
-
params Rename
Interactive migration aid: type your nonce / clientId / configURL and see the before vs after call shape, plus a live probe for the renamed IdentityCredentialError attribute.
-
Codemod helper
Paste FedCM client code — the page detects the deprecated
noncetop-level field anderr.codeattribute, rewrites them in place, and reports each change. -
Error name explorer
Catalogue of every
IdentityCredentialError.errorvalue, what it means, and the recommended UX response — with a live probe of which attribute (legacy.codeor new.error) your browser exposes. -
Migration Wizard
A four-step wizard (Scan → Review → Apply → Verify) that detects top-level
nonceand oldIdentityCredentialErrorcode names in pasted FedCM client code, shows a side-by-side before/after diff with colour-coded changed lines, outputs migrated code for copying, and runs a livenavigator.credentials.get()call with the new format to verify the change.
why it shipped
see https://github.com/w3c-fedid/custom-requests/issues/3 for more discussion on motivation