PhoenixKit 2.22.20: Changing your password keeps you signed in
PhoenixKit 2.22.20 fixes a sign-out after changing your password.
Since 2.22.18, a password change closes the user’s sessions on every device at once. That included the tab where the user had just changed it: the page reloaded before it could sign the user in again, so they landed on a signed-out page. That browser is now left alone, and the user stays signed in there. Other devices are still signed out immediately.
The cookie that lists a browser’s signed-in accounts is also removed correctly now, with the same settings it was set with.
Full release notes: PhoenixKit 2.22.20
2.22.20 · 11 September 2026
Fixed
- Changing your password no longer signs you out of the tab that submitted
the form. The session-revocation fix in 2.22.18 broadcasts LiveView’s
"disconnect"(a page reload) for every token it deletes. The settings form still needs that socket:phx-trigger-actionPOSTs the re-login, and a reload here lands on a remember-me cookie pointing at a token that was just deleted. Other devices still close immediately; the submitting browser is skipped viaupdate_user_password/4’s:except_token.
PhoenixKit 2.22.20. Install or update: {:phoenix_kit, "~> 2.22"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.