demo · v143
FedCM Migration Wizard
A 4-step tool that scans your existing credentials.get() call for deprecated FedCM patterns, shows a before/after diff, outputs migrated code, and optionally fires the new API in-browser to verify it.
Step 1 — Scan your FedCM code
Paste your existing navigator.credentials.get() call. The wizard detects old patterns: nonce at the top level instead of inside params, and legacy IdentityCredentialError code values.
Step 2 — Review changes
The diff below shows every change needed. Lines in amber are the old patterns that need updating.
Before (original)
After (migrated)
Step 3 — Migrated code
This is your code after applying all migrations. Copy it and replace the original in your codebase.
Step 4 — Verify in browser
Fires the migrated navigator.credentials.get() call in this page. Since no real IdP is configured, the browser will reject it — but a proper FedCM error (not a parameter error) means the new format is accepted.
NetworkError or NotAllowedError means the API accepted the new parameter shape and reached the network stage. A TypeError: Invalid params would mean a format problem.
What changed in Chrome 143
noncemoved — previouslynoncewas a top-level field inside the identity provider object. In Chrome 143 it must be nested insideparams:providers: [{ configURL, clientId, params: { nonce } }].- Error code renames —
IdentityCredentialErrorcode values were renamed for clarity:"account_hint_mismatch"→"hint_mismatch","request_not_supported"→"not_supported","idp_not_allowed_by_rp"→"not_allowed".