Skip to content

PhoenixKit 2.22.13: New login alerts only for a new browser

PhoenixKit 2.22.13 cuts down false “new login” alerts.

A login counted as a new device whenever its IP address and browser together had not been seen before. Most home and mobile connections change IP address often, so users got the alert on many logins from a browser they had used for months, and learned to ignore it. The email and in-app alert now fire only when the browser and operating system have not been seen on the account before, whatever the IP. A new IP on a known browser is still recorded and written to the activity log, without an alert.

Full release notes: PhoenixKit 2.22.13

2.22.13 · 9 September 2026

Changed

  • “New login” alerts no longer fire on an IP change alone. LoginAlerts treated a login as an unrecognized “new device” whenever the exact (ip_address, user_agent_hash) pair had no matching history row — so a user with a non-static IP (most residential/mobile connections) got a “we noticed a new login” email on a large fraction of logins from a browser they’d used many times before, training people to ignore it. The email/in-app alert now fires only when the browser/OS itself (user_agent_hash, regardless of IP) hasn’t been seen for the account before; an IP-only change on an already-recognized browser updates the device record and activity log silently, same as it already does for the account’s first-ever login. The per-(ip, ua) device history itself is unchanged — still used to enrich the self-service Active Sessions list.

PhoenixKit 2.22.13. Install or update: {:phoenix_kit, "~> 2.22"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.