Open

Description
I'm having trouble with
Failed to obtain access token
I think the problem is likely that I don't have the right stuff in /auth/fitbit/callback
This is what I've got:
app.get('/auth/fitbit',
passport.authenticate('fitbit', { scope: ['activity','heartrate','location','profile'] }
));
app.get('/auth/fitbit/callback', passport.authenticate('fitbit', { failureRedirect: '/?error=auth_failed' }),
function(req, res) {
// Successful authentication, redirect home.
res.redirect('/phone');
}
);
As I said, I suspect I need to do more with the /auth/fitbit/callback portion to actually exchange the code for a token.
Metadata
Metadata
Assignees
Labels
No labels