Skip to content

Conversation

@harshithpabbati
Copy link

@harshithpabbati harshithpabbati commented Feb 27, 2020

  • GitHub
  • Google

Frontend part: codeuino/social-platform-donut-frontend#342


router.get('/auth/github/callback',
passport.authenticate('github', {
failureRedirect: 'http://localhost:3000'
Copy link
Member

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');
Copy link
Member

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'
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@devesh-verma
Copy link
Member

@harshithpabbati dont hardcode failure redirect to localhost:3000, because when this goes to production there will be no localhost and this will fail.
I feel it should be '/' which is where we have login.

@devesh-verma
Copy link
Member

@harshithpabbati also, please check why travis is failing.

@devesh-verma
Copy link
Member

@harshithpabbati also, the login which you have added to app/routes/index.js should be move to auth

@devesh-verma devesh-verma self-requested a review March 1, 2020 04:09
Copy link
Member

@devesh-verma devesh-verma left a 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.

@devesh-verma
Copy link
Member

@harshithpabbati hey can you please resolve the conflict.

@devesh-verma
Copy link
Member

@harshithpabbati hey are you still willing to work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants