Skip to content

lars-lmkns/auth_nextjs_demo

Repository files navigation

Next.js Authentication Demo

A simple authentication demo built with Next.js, featuring user registration, login, and session management using SQLite and Lucia Auth.

Features

  • User registration with email and password
  • Secure password hashing using crypto
  • User login with session management
  • Protected routes
  • SQLite database for user storage
  • Session-based authentication using Lucia Auth
  • Modern UI with responsive design

Screenshots

Login Page

Login Page

After Login (Training Page)

After Login

Technical Stack

  • Next.js 14
  • Lucia Auth for authentication
  • SQLite (better-sqlite3) for database
  • React Server Components
  • Server Actions for form handling

Getting Started

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Run the development server:
    npm run dev
  4. Open http://localhost:3000 in your browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors