Sveltekit Auth screenshot

Sveltekit Auth

Author Avatar Theme by Delay
Updated: 2 Jun 2024
278 Stars

This is a Sveltekit Auth project. It utilizes Lucia for authentication, shadcn-svelte for ui elements, Drizzle for database connectivity and type safety, Lucide for icons, Zod and Superforms to handle forms and validation and Sveltekit.

Categories

Overview:

This project is a Sveltekit Auth starter project that utilizes various frameworks and packages such as Lucia for authentication, shadcn-svelte for UI elements, Lucide for icons, Prisma for database connectivity, and Sveltekit for the JavaScript framework. It includes features like email verification, password reset, user roles, profile editing, and theme customization (light and dark mode). The project is open source and released under the MIT license.

Features:

  • Email and password user login system: Allows users to create new accounts and sign in.
  • User roles: Provides different levels of access and permissions for different users.
  • Email verification: Verifies the user’s email address and sends an email for re-verification if the email address is changed.
  • Profile editing: Enables users to edit their profile information, including changing their email address and password.
  • Password reset: Allows users to reset their password in case they forget it.
  • Theme customization: Provides the option to switch between light and dark modes.
  • Logging system: Utilizes Axiom for tracking and logging errors.

Installation:

To install the Sveltekit Auth project, follow these steps:

  1. Rename sample.env file to .env and provide your personal project settings.
  2. Set up the required environmental server-side variables in the .env file.
  3. Refer to the schema.prisma file for the app’s file structure and make any necessary adjustments.
  4. Install the necessary dependencies and packages (Lucia, shadcn-svelte, Lucide, Prisma, Zod, Superforms, and any other required packages).
  5. Set up the database connectivity using Prisma and configure it with the desired database.
  6. Explore the project’s documentation and tutorials for further guidance and customization.

Summary:

The Sveltekit Auth project is an open source auth starter project built on Sveltekit. It utilizes various frameworks and packages like Lucia, shadcn-svelte, Lucide, Prisma, Zod, and Superforms to provide a fully functional authentication system with features like email verification, password reset, profile editing, user roles, and theme customization. The project’s file structure and installation process are well-documented, making it accessible for developers to set up and customize according to their needs.