Learn how to quickly add authentication and user profile in your vanilla Javascript app using Hanko.
.env
file.
<hanko-auth>
component<hanko-auth>
web component to create a login interface. Import the register
function from @teamhanko/hanko-elements
and call it with your Hanko API URL to register the component with the browser’s CustomElementRegistry.
<hanko-profile>
<hanko-profile>
component provides an interface, where users can manage their email addresses and passkeys.
hanko-auth
and hanko-profile
elements can be customized using CSS variables and parts. See our
guide on customization here.