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.
- Host: GitHub
- URL: https://github.com/dev-ashanaur/next-14-custom-authentication
- Owner: DEV-ASHANAUR
- Created: 2024-03-06T13:45:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T16:28:55.000Z (about 2 years ago)
- Last Synced: 2025-02-08T04:41:25.544Z (over 1 year ago)
- Topics: approuter, cookie, jwt, nextjs14, typescript
- Language: TypeScript
- Homepage: https://next-14-custom-authentication.vercel.app/
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom JWT-Cookie Authentication System for Next.js 14 with App Router

## 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