/oauth2-and-jwt-authentication

OAuth 2.0 and JWT authentication flow developed with MERN stack.

Primary LanguageJavaScript

Authentication with MERN stack

This project implements a login with two authentication methods. First, the easy way to avoid the sign-in process, using OAuth 2.0 authentication with Google or GitHub. On the other hand, creating an account and then using the credentials.

After login, JSON Web Token (JWT) is used for session management.

Backend

NodeJS Express.js MongoDB JWT Google GitHub

  • Authentication features:

    • Sign in with credentials (fullname, email and password).
    • Log in with credentials.
    • Log in with Google.
    • Log in with GitHub.
  • JSON Web Token to manage users sessions.

  • Logging:

    • Deploying configuration.
    • HTTP requests.
    • Authentication process by user.

Frontend

React Bootstrap

Three main pages designed: Login, Register and Home page.

Page Description
Login Allows users to login in the system with Google, GitHub or using credentials (email and password).
Register Allows users to create an account in the system (fullname, email, password).
Home Displays users information.