Git Product home page Git Product logo

next-auth's Introduction

Next Authentication

Description   |    Requirements   |    Technologies   |    Usage


License Repo size Top lang Stars repo Forks repo Pull requests Last commit

Report bug · Request feature


Description

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.

Requirements

Technologies

Backend (Api)

  • Nodejs
  • Typescript
  • Express
  • Json web token

Front End

  • NextJs
  • Typescript
  • Sass
  • Axios
  • Nookies
  • ESLint (Airbnb config + pessoal rules)
  • Prettier

Usage

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'
}

License

Distributed under the MIT License. See LICENSE for more information.

Made with ❤️ by Lissone


next-auth's People

Contributors

lissone avatar

Stargazers

Fernanda Mendonça avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.