Description | Requirements | Technologies | Usage
Simple jwt authentication application with refresh token. Developed in order to deepen my knowledge of jwt authentication through the front-end using NextJs.
I learned a lot about interceptors and axios request queue, api data recovery logic by client-side and server-side using refresh token, permission control with react and server-side components, besides knowing more about BrodcastChannel for automatic logout of tabs.
This project can be used as a model to create react applications that need jwt authentication with refresh token.
- Nodejs
- Typescript
- Express
- Json web token
- NextJs
- Typescript
- Sass
- Axios
- Nookies
- ESLint (Airbnb config + pessoal rules)
- Prettier
You can clone it on your pc using the command:
git clone https://github.com/Lissone/next-auth.git
cd next-auth
Install dependencies using:
yarn
#or
npm install
Run api:
cd .\packages\api\
yarn dev
#or
npm run dev
Run web:
cd .\packages\web\
yarn dev
#or
npm run dev
Default user to login:
const user = {
email: '[email protected]',
password: '123456'
}
Distributed under the MIT License. See LICENSE
for more information.