/nextauth

Authentication flow with JWT

Primary LanguageTypeScriptMIT LicenseMIT

Logo Nexjs

License: MIT

Authentication flow with JWT

Authentication flow on client/server side:

  • SignIn
  • SignOut
  • RefreshToken

Before you begin, make sure you've met the following requirements:

  • node(versions 14.x.x or later)
  • npm(versions 5.x.x or later)

🚀 Initial steps

Clone the project:

git clone https://github.com/MarcosSantosDev/nextauth.git

Install the dependencies:

npm install

☕ Application commands

How to run app in development mode and production ready mode ?

To run the application in development mode, run the command below:

npm run dev

Open http://localhost:3000 with your browser to see the result.

To generate the application build, run the command below:

npm run build

To run the application on top of the build, in production mode, run the command below:

npm run start

🤝 Contributing to the project

To contribute, follow these steps:

  1. Clone this repository.
  2. Create a branch:git checkout -b <type>/<branch_name>
  3. Make your changes and confirm them:
  • Common commit message: git commit -m "<type>: message"
  • To commit with commitizen(commit message formatter): npm run commit
  1. Push to original branch: git push
  2. Create the pull request to development branch.

Make with ❤️ by Marcos Santos