Learn how to quickly add authentication and user profile in your Solid app using Hanko.
@teamhanko/hanko-elements
hanko-elements
to access the pre-built hanko-auth
and hanko-profile
components.
<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>
component<hanko-profile>
component provides an interface, where users can manage their email addresses and passkeys.
@teamhanko/hanko-elements
to manage user logouts:
hanko-auth
and hanko-profile
components using CSS variables and parts. Refer to our customization guide.