Skip to content

A reliable adaptable answer for any NextJS platforms providing smooth sign-in with top-notch safety measures social media logins, password reset, email checks, and tweakable UI to boost user satisfaction.

License

Notifications You must be signed in to change notification settings

ItsPinion/NextJS-Auth-Template

Repository files navigation

Best NextJS Authentication System 🌟

A state-of-the-art authentication solution for any NextJS platforms, offering a blend of security, usability, and scalability.

Version License

Table of Contents

Features

  • Secure authentication with Clerk
  • Single Sign-On (SSO) support
  • Email verification flow
  • Password reset functionality
  • Responsive design for mobile and desktop

Screenshots

SignIn Screen

Login Screen pc

SignUp Screen

Login Screen pc

Installation

Prerequisites

Ensure you have Node.js installed on your machine.

node --version
npm --version

Steps

  1. Clone the repository:

    git clone https://github.com/ItsPinion/NextJS-Auth-Template.git
  2. Navigate into the directory:

    cd NextJS-Auth-Template
  3. Install dependencies:

    npm install
    # or
    bun install
  4. Copy .env.example to .env and fill in the required values.

  5. Start the development server:

    npm run dev
    # or
    bun dev

    or

  6. Build and start the server:

    npm run build
    npm start
    # or
    bun run build
    bun start

Environment Variables

  • DATABASE_URL: Connection string for your database.
  • CLERK_SECRET_KEY: Clerk secret key for authentication.
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: Clerk publishable key exposed to the client side.

Usage

Navigate to http://localhost:3000 in your web browser and click the sign in button to start the authentication process.

Deployment

Deployed using Vercel. Continuous deployment is configured via GitHub Actions.

Contributing

We welcome contributions! Please read our Contributing Guide for details on how to submit pull requests to us.

License

MIT License © ItsPinion

Acknowledgments

  • The Shadcn UI library for providing a modern and clean UI.
  • Clerk for handling authentication and user sessions.
  • Drizzle ORM for efficient data management.
  • The open-source community for their contributions and support.

Contact

For any questions or feedback, please contact the project maintainer(ME) at our discord server Pinion's Nest.

About

A reliable adaptable answer for any NextJS platforms providing smooth sign-in with top-notch safety measures social media logins, password reset, email checks, and tweakable UI to boost user satisfaction.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks