An open API service indexing awesome lists of open source software.

https://github.com/dev-ashanaur/next-14-custom-authentication

This is a full custom authentication in next js 14 using cookie.
https://github.com/dev-ashanaur/next-14-custom-authentication

approuter cookie jwt nextjs14 typescript

Last synced: about 1 year ago
JSON representation

This is a full custom authentication in next js 14 using cookie.

Awesome Lists containing this project

README

          

# Custom JWT-Cookie Authentication System for Next.js 14 with App Router

![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)

## Overview

This repository provides a custom authentication system for Next.js 14 applications using JSON Web Tokens (JWT) and cookies. The authentication flow is implemented with the new App Router, taking advantage of the latest features and improvements in Next.js.

## Features

- **JWT-Cookie Authentication:** Secure user authentication using JSON Web Tokens stored in HTTP cookies.
- **Next.js 14:** Leverages the latest version of Next.js for optimized performance and developer experience.
- **App Router:** Implements routing with the new App Router for efficient client-side navigation.
- **Custom Middleware:** Easily customizable middleware for protecting routes and handling authentication logic.
- **Signup, Email Verification, and Password Reset:** Includes functionality for user signup, email verification, and password reset.
- **Example Implementation:** Includes a simple example application to demonstrate how to integrate the authentication system into your Next.js app.

## Getting Started

### Installation

```bash
# Clone the repository
git clone https://github.com/DEV-ASHANAUR/next-14-custom-authentication.git

# Navigate to the project directory
cd next-14-custom-authenticationh

# Install dependencies
npm install