-
-
Notifications
You must be signed in to change notification settings - Fork 58
Thirdy Party Authentication with passport #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- GitHub - Google
|
|
||
| router.get('/auth/github/callback', | ||
| passport.authenticate('github', { | ||
| failureRedirect: 'http://localhost:3000' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
| failureRedirect: 'http://localhost:3000' | ||
| }), | ||
| (req, res) => { | ||
| res.redirect('http://localhost:3000/dashboard'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
| 'googleAuth' : { | ||
| 'clientID' : process.env.GOOGLECLIENTID, | ||
| 'clientSecret' : process.env.GOOGLECLIENTSECRET, | ||
| 'callbackURL' : 'http://localhost:4000/auth/google/callback' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
| 'clientSecret' : process.env.GOOGLECLIENTSECRET, | ||
| 'callbackURL' : 'http://localhost:4000/auth/google/callback' | ||
| } | ||
| }; No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
|
@harshithpabbati dont hardcode failure redirect to localhost:3000, because when this goes to production there will be no localhost and this will fail. |
|
@harshithpabbati also, please check why travis is failing. |
|
@harshithpabbati also, the login which you have added to |
devesh-verma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make the requested changes.
|
@harshithpabbati hey can you please resolve the conflict. |
|
@harshithpabbati hey are you still willing to work on this? |
Frontend part: codeuino/social-platform-donut-frontend#342