github teamhanko/hanko backend/v2.4.0
Hanko 2.4

latest releases: @teamhanko/hanko-elements@2.4.0, @teamhanko/frontend-sdk@2.4.0
11 hours ago

This release brings several security, reliability, and usability improvements across Hanko’s authentication stack. It includes stronger passcode options, better key management integration, more robust auth flows in Hanko Elements, improved device trust handling, and expanded localization support:

Alphanumeric passcodes

In addition to numeric passcodes, Hanko now supports optional alphanumeric passcodes. This increases entropy and makes passcode-based authentication more resilient against brute-force and guessing attacks.

External key providers (AWS KMS)

Hanko’s token signing engine can now be configured to use external HSMs and Key Management Systems, currently only AWS KMS is supported. This allows teams with higher security requirements to keep signing keys fully managed outside of Hanko.

Security notifications

Hanko now optionally sends email notifications for security-relevant actions (enabled by default), for example when a new passkey is added to an account. These notifications help users detect suspicious activity early and improve overall account security.

PKCE by default in Hanko Elements

Hanko Elements now uses PKCE-based flows by default. This resolves several issues with third-party integrations, especially in setups where the backend is not running on the same domain as the frontend.

Multi-user device trust support

Device trust cookies are no longer overwritten on shared machines or when multiple users log into the same application. This improves reliability for shared computers and multi-account setups while keeping device trust intact per user.

Dutch localization

Hanko now officially supports Dutch (NL). This includes UI text, backend mailing templates, and security notification emails, providing a more complete localized experience for Dutch-speaking users.

What's Changed

New Contributors

Full Changelog: backend/v2.3.0...backend/v2.4.0

Don't miss a new hanko release

NewReleases is sending notifications on new releases.