Skip to content

yalin-liu/oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMPS381F - Passport, OAuth Middleware for Node.js [Reference]

  1. Create a Facebook App at developer.facebook.com to obtain an App ID and App Secret

Create a Facebook App

  1. Put your App ID and App Secret into the facebookAuth variable

Configure your Facebook App Add Callback URL - same with your server.js

var facebookAuth = {
   'clientID'        : '', // facebook App ID
   'clientSecret'    : '', // facebook App Secret
   'callbackURL'     : 'http://localhost:8099/auth/facebook/callback' 
};

Remember to update callbackURL if you deploy your server to the cloud!

Documentation of Passport can be found here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published