Skip to content

sample for working google authentication using passport.js

Notifications You must be signed in to change notification settings

dougglez/google-oauth-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is about as basic as you can get to set up the googe authentication with passportjs.

I have created a database using SQL to hold the user info, you can find the schema in the db folder.

You will need to create credentials at console.developers.google.com and insert them into you config folder.

  1. Click on credentials
  2. Click "Create credentials
  3. Click OAuth client ID
  4. Fill out the information. You can use localhost:{your port here} until your site is hosted

Once you are done with that, you will be able to see your client id and client secret.

Save those into your config.js file.

About

sample for working google authentication using passport.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published