npm / netlify-identity-widget
netlify-identity-widget
What changed in netlify-identity-widget 2, from its official release notes, upgrade guides and advisories. Also covers @types/netlify-identity-widget. Sources checked 2026-10-21.
1 security4 new APIs and options1 behavior and defaults1 tooling8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnetlify-identity-widget 215 changes
Security 1
Restored sessions are validated server-side during initialization.
New APIs and options 4
Adds the cookieDomain option for cross-subdomain authentication.
Facebook is added as an OAuth provider for the identity widget.
The widget adds a toggle to show or hide passwords.
Signup now supports custom user_metadata.
Behavior and default changes 1
Logged-in users see the recovery form instead of the logout screen.
Tooling 1
TypeScript support was added.
Fixes and other changes 8
The UMD entry now uses index.ts to auto-initialize the widget.
The netlify-identity-widget.js file is now exported properly.
The widget uses button elements for semantic markup.
The close button size was fixed.
A cookie path issue was fixed.
A duplicate initialization guard issue was fixed.
An ESC key issue was fixed.
Seven translations were added: de, it, ar, zh-cn, nl, sv, and sw.