You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Documentation the Strategy function should be: FitbitOAuth2Strategy, and scope doesn't work if passed in the use.authentication, but needs to be in the arguments passed to the constructor.
if i have in my route:
app.get('/auth/fitbit', passport.authenticate('fitbit',
{ scope: ['activity','heartrate','location','profile'] }
));
the FitBit api returns an error that scope wasn't set.
I needed to add scope as a property when I instantiate new FitbitStrategy. (as in my example above.)
In the Documentation the Strategy function should be: FitbitOAuth2Strategy, and scope doesn't work if passed in the use.authentication, but needs to be in the arguments passed to the constructor.
As a Module, this works with the current code base:
The text was updated successfully, but these errors were encountered: