A web component that handles user login and user registration.
<hanko-auth>
component serves as a comprehensive authentication solution, seamlessly integrating both login and registration functionality within a unified interface. This component is specifically designed for applications seeking to streamline their authentication process by consolidating multiple authentication flows without requiring separate routes or pages.
The component intelligently manages state transitions between login and registration views, enabling effortless user authentication while maintaining a cohesive experience throughout the sign-in and registration 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 | Speficy 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.