Skip to content

This repo consists of auth implementation in node using passport oauth implementation along with JWT

Notifications You must be signed in to change notification settings

Senor101/Node-OAuth

Repository files navigation

NODE OAUTH

This repo consist of implementation of Oauth along with JWT. The Oauth implementation consists of two widely used Oauth provides including google and facebook.

Tech Stacks used:

  • Passport
  • JWT
  • Passport-jwt
  • Passport-google-oauth20
  • passport-facebook

Installation

To install this project

  1. Clone the repository from GitHub:

    git clone https://github.com/Senor101/Node-OAuth.git
  2. Navigate to the project directory:

     cd Node-OAuth
  3. Install the required dependencies:

    npm install
  4. Configure the environment variables:

  • Create a .env file in the project root directory. Include the credentials provided in .env.example file.
  1. Run the application:
    npm start
  2. Access the application in your browser at
     http://localhost:3000/

REST API

Google Oauth

For using google oauth, access the google auth route as

 http://localhost:3000/auth/google

Facebook Oauth

For using facebook oauth, access the facebook auth route as

 http://localhost:3000/auth/facebook

About

This repo consists of auth implementation in node using passport oauth implementation along with JWT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published