![GitHub README banner_ Next App Router](https://private-user-images.githubusercontent.com/32078923/249414525-3de51fd3-4c29-4010-9e5d-46d37d00e166.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5ODI1MzQsIm5iZiI6MTcyMzk4MjIzNCwicGF0aCI6Ii8zMjA3ODkyMy8yNDk0MTQ1MjUtM2RlNTFmZDMtNGMyOS00MDEwLTllNWQtNDZkMzdkMDBlMTY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDExNTcxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA4ZjI2YTFjMzVkZjgwNjQzYWY3MmI2NGNiNzk0YWUyNjAwOGJhYjg0ZjQzMzM0MTA5Y2RkZTBiYWNkYjU1MjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VwQlss7gwcBHg0Xxq-mJEDcxAYMh2lRMTzEO4AutbnA)
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.