Skip to content

REST API with JWT, Google and Facebook OAuth. Stack: Passport, Express, React, Redux.

Notifications You must be signed in to change notification settings

Qwoxa/OAuth-REST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth REST

In this repo, you can find my implementation of open authorization (Google & Facebook) with JWT tokens. On backend the used frameworks, such as Express.js, Password.js, added validation for simple registration. Server-side mainly is implemented with React.js and Redux (for layout Material-UI has been used).

Getting started

To start using the project for your purposes/review, follow those steps:

  1. Clone the repository and go to the project directory
git clone https://github.com/Qwoxa/OAuth-REST
cd OAuth-REST
  1. Install dependencies
npm run install-packages
  1. Add .env file with mongo uri, jwt secret and port
mv ./backend/.env_sample ./backend/.env
vi ./backend/.env
  1. Change baseUrl for axios (adjust the port)
vi ./frontend/src/index.js
  1. Add the IDs of your google and facebook applications
vi ./frontend/src/oauth.js
  1. Start the application
npm start

About

REST API with JWT, Google and Facebook OAuth. Stack: Passport, Express, React, Redux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published