An Authentication API which utilizes Social Authentications.
Which when modified can serve as a microservice for authentication. Or bundled in the app like in the monolitic architecture of software development. The oauths utilized are Google and Facebook, Twitter oauth V.2 doesn't provide user email but the oauth v.1 does, which involves a little process.
So I did not utilize their oauth API since my use case i need the user email in to store in my database of users.
- Create a .env file in the root of the server
- Add the variours env variables for your app. Note: you'd need to create an app with the various providers and obtain your app credentials
- Run npm install
- Run npm run dev
Env Variables to add For the MONGODB its the uri to your mongo be database (Atlas or Localhost)