Hanko 1.0 #1566
FlxMgdnz
announced in
Announcements
Hanko 1.0
#1566
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are excited to release Hanko 1.0 today. The new Hanko is more user-friendly, more customizable and more mature than all previous releases in almost all areas and finally deserves the 1.0 version number.
Highlights
Options, options, options
Usernames
Privacy
Dedicated login and registration flows
<hanko-login>
and<hanko-registration>
that can be placed on separate pages, e.g. /login and /registration<hanko-auth>
element is still available, allowing users to toggle between login and registration on the same pageIntroducing the all-new Flow API
This version contains a new API, which we call Flow API (#1532). With the previous RESTful API of the Hanko backend, it had become very complex to extend the functionality of Hanko. This was mainly due to the fact that most of the state handling was done in Hanko Elements and each endpoint had to be called in a specific order to work properly. The Flow API takes over this complexity completely in the backend and thus enables us to further develop the Hanko system at a higher speed than ever before.
New config options
Flow API supports much more granular settings to control the login and registration flows. The following is a sample configuration containing the most important new settings:
Migration
Config
With the introduction of the new configuration parameters, some old parameters have become obsolete and the new parameters should be used in future if the default values are not sufficient (default values have not changed):
emails.max_num_of_addresses
email.limit
emails.require_verification
email.require_verification
passcode.ttl
email.passcode_ttl
smtp
email_delivery.smtp
passcode.email.from_name
email_delivery.from_name
passcode.email.from_address
email_delivery.from_address
password.min_password_length
password.min_length
webauthn.user_verification
passkey.user_verification
webauthn.timeout
webauthn.timeouts.registration
webauthn.timeout
webauthn.timeouts.login
Old config files can still be used, but the
convert_legacy_config
parameter must be set totrue
.Caution
Some of the new configuration parameters are not compatible with older versions of Hanko Elements (< v1.0). To ensure smooth operation, Hanko Elements v1.0 or higher should be used with the new configuration parameters.
Caution
The new configuration parameters
email.enabled
,email.use_for_authentication
andpasskey.enabled
also disable the REST API endpoints if set tofalse
, but Hanko Elements before v1.0 does not know how to deal with that and will throw an error.Frontend
Events
onAuthFlowCompleted
events have been removed (useonSessionCreated
instead)onSessionCreated
contains the session JWT, but not the user ID anymoreWhat's Changed
New Contributors
Full Changelog: backend/v0.12.0...backend/v1.0.0
This discussion was created from the release Hanko 1.0.
Beta Was this translation helpful? Give feedback.
All reactions