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
Hi, I got this error while I run the example showed on README.
TypeError: Object [object Object] has no method 'authorize'
W20160304-16:16:35.383(8)? (STDERR) at server/oauth2server.js:21:56
W20160304-16:16:35.383(8)? (STDERR) at /home/ljm/simple-todos/.meteor/local/build/programs/server/app/server/oauth2server.js:39:4
W20160304-16:16:35.383(8)? (STDERR) at /home/ljm/simple-todos/.meteor/local/build/programs/server/boot.js:242:10
W20160304-16:16:35.383(8)? (STDERR) at Array.forEach (native)
W20160304-16:16:35.383(8)? (STDERR) at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160304-16:16:35.384(8)? (STDERR) at /home/ljm/simple-todos/.meteor/local/build/programs/server/boot.js:137:5
It seems this error is caused by this function:
oauth2server.routes.get('/account', oauth2server.oauth.authorize(), function(req, res, next) {
var user = Meteor.users.findOne(req.user.id);
res.send({
id: user._id,
name: user.name
});
});
I am so confused that authorize has been implemented by node-oauth2-server , why the error occurred ?
😆 So so appreciate for any idea !
The text was updated successfully, but these errors were encountered:
Hi, I got this error while I run the example showed on README.
It seems this error is caused by this function:
I am so confused that
authorize
has been implemented bynode-oauth2-server
, why the error occurred ?😆 So so appreciate for any idea !
The text was updated successfully, but these errors were encountered: