Skip to content

This is a simple authentication system that uses Next.js 14, Authjs v5 and Prisma. It supports authentication with email and password, GitHub and Google.

Notifications You must be signed in to change notification settings

oyal/authjs-prisma

Repository files navigation

Description

This is a simple authentication system that uses Next.js 14, Authjs v5 and Prisma. It supports authentication with email and password, GitHub and Google.

image

image

Getting Started

  1. Clone the repository and install the dependencies
git clone https://github.com/oyal/authjs-prisma.git
cd authjs-prisma
npm install
  1. Configure the environment variables

Copy the .env.example file to .env and fill in the required values.

cp .env.example .env
  1. Database setup

Update the DATABASE_URL in the .env file with your database connection string.

npx prisma db push
  1. Run the development server
npm run dev

Open http://localhost:3000 with your browser to see the result.

About

This is a simple authentication system that uses Next.js 14, Authjs v5 and Prisma. It supports authentication with email and password, GitHub and Google.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published