This example project showcases how to integrate Lucia V3 for user authentication in a SvelteKit application. User data is stored in a local SQLite database. The project is split into branches, each demonstrating a different aspect of the authentication process. Each branch builds on top of the previous one, with the last branch being the most comprehensive and up-to-date.
For a guide on how to implement these features, check out the video tutorial series: Lucia Auth V3 with SvelteKit.
Install Dependencies: Run the following command to install the project dependencies:
pnpm install
Environment Variables: Create a .env
file in the root directory of the project. Use the .env.example
file as a reference.
Database Setup: Run the following commands to set up the database:
pnpm db:generate
pnpm db:push
Run the Project: Run the following command to start the development server:
pnpm dev