demo · v143
Codemod helper
Paste a snippet of FedCM client code. The page detects the deprecated nonce top-level field and the old err.code error attribute, suggests a rewrite, and applies it for you.
before — paste your code
after — v143 shape
findings
the migration
// before (pre-v143)
navigator.credentials.get({
identity: { providers: [{ nonce: "n123", clientId: "..." }] }
});
try { /* ... */ } catch (e) { e.code; }
// after (v143+)
navigator.credentials.get({
identity: { providers: [{ params: { nonce: "n123" }, clientId: "..." }] }
});
try { /* ... */ } catch (e) { e.error; }
why this angle
The other concept shows the request shape. This one is the migration tool — what every FedCM-consuming codebase needs on the upgrade. Paste, rewrite, copy. The codemod is intentionally simple regex; that matches how this kind of mechanical rename ships in real codebases.