Skip to content

abdooo9/Google-OAuth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Google OAuth2 With Node.js



Installation

  1. git clone https://github.com/abdooo9/google-oauth2.git

  2. Create new project with Google Cloud Platform

    Create new project

  3. Click on Create CREDENTIALS

  4. Click on OAuth client ID

    Create CREDENTIALS

  5. Create OAuth client ID

    • Type your app name
    • Type your Authorized redirect URIs, I typed http://localhost:5000/callback
    • Click create button

    Create OAuth client ID

    • Copy client id, client secret to clipboard

      client id, client secret

  6. Now we need modification environments

    • change .env.example file name to .env
    • Type your CLINET_ID and CLIENT_SECRET in .env file after equal sign
  7. Run App

    • Type npm i in your command line
    • Type node server.js

    App is work!



Support me 🌹

Abdooo9 Support