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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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_addressesemail.limitemails.require_verificationemail.require_verificationpasscode.ttlemail.passcode_ttlsmtpemail_delivery.smtppasscode.email.from_nameemail_delivery.from_namepasscode.email.from_addressemail_delivery.from_addresspassword.min_password_lengthpassword.min_lengthwebauthn.user_verificationpasskey.user_verificationwebauthn.timeoutwebauthn.timeouts.registrationwebauthn.timeoutwebauthn.timeouts.loginOld config files can still be used, but the
convert_legacy_configparameter 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_authenticationandpasskey.enabledalso 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
onAuthFlowCompletedevents have been removed (useonSessionCreatedinstead)onSessionCreatedcontains 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