Skip to content

Unable to get access token #3

Open
@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions