Skip to content

Next.js application with the new App Router and JWT authentication 🚀

Notifications You must be signed in to change notification settings

clarity-digital/nextjs-jwt-app-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub README banner_ Next App Router

License: MIT

This repository contains a Next.js boilerplate with the new App Router paradigm and JWT authentication using a Laravel REST API.

Laravel backend

We created a Laravel REST API inspired by Laravel Breeze. You can find the repository here.

Features

  • JWT authentication with NextAuth.js (login, register, password reset, email verification)
  • Profile updating
  • Password changing
  • TypeScript

Installation

  1. npm install
  2. cp .env.example .env.local
  3. npm run dev

Authentication

The access token has a TTL of 1 hour until it expires. The access token should be refreshed within this time window to avoid becoming unauthenticated. The access token can be refreshed for two weeks. After that, the user has to log in again.

This behavior can be changed in the REST API repository.

Contributing

Feel free to open a pull request if you want to contribute to this project. All contributions / suggestions are welcome ✨

License

This project is open-sourced software licensed under the MIT license.

About

Next.js application with the new App Router and JWT authentication 🚀

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages