Skip to main content

Use case

The <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:
try out the<hanko-login> component.
If you want to create a dedicated Registration page:
try out the <hanko-registration> component .

Features

Usage

Markup

Attributes

Adding <hanko-auth> component

The following examples show how to integrate the <hanko-auth> component in different full-stack and frontend frameworks.

Full stack

components/HankoAuth.tsx

Frontend

components/HankoAuth.tsx
You should see an interface similar to this 👇
sign-up
For more detailed instructions on integrating <hanko-auth> component with your favorite frameworks, navigate to quickstart guides.