This repository contains a Next.js boilerplate with the new App Router paradigm and JWT authentication using a Laravel REST API.
We created a Laravel REST API inspired by Laravel Breeze. You can find the repository here.
- JWT authentication with NextAuth.js (login, register, password reset, email verification)
- Profile updating
- Password changing
- TypeScript
npm install
cp .env.example .env.local
npm run dev
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.
Feel free to open a pull request if you want to contribute to this project. All contributions / suggestions are welcome ✨
This project is open-sourced software licensed under the MIT license.