GithubHelp home page GithubHelp logo

ankitnayan83 / next-auth-v5-toolkit Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 602 KB

This repository contains a full-stack application built using Next.js and Next-Auth v5. The application includes a comprehensive set of authentication features such as credentials login and registration, OAuth login, forgot password, email verification, password reset link, and two-factor authentication (2FA).

Home Page: https://next-auth-v5-toolkit.vercel.app

TypeScript 98.03% CSS 1.66% JavaScript 0.31%
next-auth-v5 nextjs nodemailer postgresql resend server-actions shadcn-ui tailwindcss

next-auth-v5-toolkit's Introduction

Next-Auth v5 Full Stack Application

This repository contains a full-stack application built using Next.js and Next-Auth v5. The application includes a comprehensive set of authentication features such as credentials login and registration, OAuth login, forgot password, email verification, password reset link, and two-factor authentication (2FA).

Features

  • Credentials Login and Register: Users can sign up and log in using their email and password.
  • OAuth Login: Integration with popular OAuth providers (e.g., Google, GitHub).
  • Forgot Password: Allows users to reset their password via email.
  • Email Verification: Users must verify their email address before accessing certain features.
  • Password Reset Link: Sends a secure link to reset the password.
  • Two-Factor Authentication (2FA): Enhances security by requiring a second form of authentication.

Technologies Used

  • Framework: Next.js
  • Authentication: Next-Auth v5
  • Database: PostgreSQL
  • Styling: Tailwind CSS, ShadCn UI]
  • Email Service: SendGrid

Getting Started

Prerequisites

  • Node.js (version X.X.X)
  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/AnkitNayan83/next-auth-v5-toolkit.git
  2. Navigate to the project directory:

    cd next-auth-v5-toolkit
  3. Install dependencies:

    npm install

Environment Variables:

  1. Create a .env file in the root of the project and add the following environment variables:
DATABASE_URL=
AUTH_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
EMAIL=
SENDGRID_API_KEY=
NEXT_PUBLIC_APP_URL="http://localhost:3000" || "<your domain.com>"

Running the Application

  1. Start the development server:
npm run dev
  1. Open http://localhost:3000 in your browser to see the application.

Author

Ankit Nayan


next-auth-v5-toolkit's People

Contributors

ankitnayan83 avatar

Stargazers

thoaingo avatar tensorboy avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.