Skip to content

SimoMay/sveltekit-hanko-auth

Repository files navigation

SvelteKit-Hanko-Auth

A SvelteKit starter template integrated with Hanko.io Auth.

Hanko.io is great open source alternative if you want to go passowrdless with your auth (Passkeys, Passcodes, Security Keys, OAuth, ...).

The template uses both [<hanko-auth>] & [<hanko-profile>] web componenets for login and profile.

Getting started

To get started with SvelteKit-Hanko-Auth, first clone the repo:

git clone https://github.com/SimoMay/sveltekit-hanko-auth.git

Then install the dependencies:

cd sveltekit-hanko-auth
pnpm install

Replace the example env file:

mv .env.example .env

Developing

Start a development server:

pnpm dev

Building

To create a production version of your app:

pnpm build

You can preview the production build with pnpm preview.

To deploy your app, you may need to install an adapter for your target environment.