demo · v143
params Rename
Type a nonce. The page shows the old top-level call alongside the new params call, and probes the IdentityCredentialError rename live.
before (deprecated)
after (v143+)
IdentityCredentialError rename probe
checking…
before
err.code (string)
after
err.error (string, same value)
The page constructs a synthetic IdentityCredentialError if the browser allows it, and reports which of .code / .error is present.
the call
// v143: nonce moves under params, and many other custom fields will follow
const cred = await navigator.credentials.get({
identity: {
providers: [{
configURL: "https://idp.example/fedcm.json",
clientId: "my-rp",
params: { nonce: "abc123-xyz" } // ← new
}]
}
});
see also
- FedCM nonce migration — feature index
- ChromeStatus entry
- spec PR