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