Comments (9)
is there anything returned in the first parameter (the error params)?
from fitbit-js.
Hi, I am receiving the exact same error. Have you been able to solve it?
from fitbit-js.
When you first started up the test app, did you navigate straight to /getStuff
? That would definitely result in that error since there isn't a token yet. There should probably be a redirect to /
if token is undefined.
from fitbit-js.
No, when I start up the test app, I navigate to /. However, the callback:
fitbitClient.getAccessToken(req, res, function (error, newToken) {
console.log('never get here, but sure we should');
if(newToken) {
token = newToken;
res.writeHead(200, {'Content-Type':'text/html'});
res.end('Now get stuff');
}
});
doesn't seem to get called
from fitbit-js.
After you get redirected back from fitbit.com, where do you end up?
from fitbit-js.
If I put callback as /getStuff, then I end up at /getStuff with the error "TypeError: Cannot read property 'oauth_token_secret' of undefined." Since I am never getting to the callback of fitbitClient.getAccessToken(...
If I leave callback blank I get redirected to a fitbit page with "You have successfully authorized access to [app], Please return to [app] and enter the following PIN when requested:
9oetrufr52c1het7d0l1v8693j." However, my app is a browser app in dev.fitbit.com.
Any ideas?
from fitbit-js.
the callback needs to be /
from fitbit-js.
When the callback is set to /
I get stuck in a loop on the Fitibit site giving the application access.
from fitbit-js.
@ryanburgess are you still seeing this issue? (also, see #14)
from fitbit-js.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fitbit-js.