10-15-2015 20:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


Jogger
4
0
0
10-15-2015 20:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I know the module isn't owned by Fitbit but I'm hoping someone can point me in the right direction. 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.
Can anyone help? I've got a conference to go to with this thing and it just stopped working (probably because of the oauth1.0a change.
Thanks,
Kirsten
0 REPLIES 0
