A web component that handles user login and user registration.
<hanko-auth>
web component, which provides a unified authentication interface that handles both user login and registration flows in a single component. You’ll learn how to integrate this versatile component into various frameworks and customize its behavior for different use cases.Key Technologies:<hanko-auth>
component in your application<hanko-auth>
component provides a complete authentication solution that combines both login and registration functionality in a single interface. This component is ideal for applications that want to streamline their authentication process without needing separate routes or pages for different authentication flows.
The component automatically handles transitions between login and registration views, providing a seamless user experience throughout the entire authentication process.
If you want to create a dedicated Login page: <hanko-login>
component.
If you want to create a dedicated Registration page: <hanko-register>
component .
Login + Register | Seamlessly handles both flows in one component. |
Passkeys | Enables passwordless login with modern device credentials. |
Passcodes | Useful for email-based login and verification workflows. |
2FA | Users can use a TOTP app or security keys. |
OAuth SSO | Allows users to log in using third-party identity providers (e.g., Google, Apple). |
Passwords | Supports traditional password-based login for broader accessibility. |
Name | Description |
---|---|
prefilled-email | Used to prefill the email input field |
prefilled-username | Used to prefill the username input field |
lang | Used to specify the language of the content within the element |
mode | Specify the starting flow, either registration or login |
<hanko-auth>
component<hanko-auth>
component in different full-stack and frontend frameworks.
<hanko-auth>
component with your favorite frameworks, navigate to quickstart guides.