Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with connection.revoke_token #14

Closed
denny99 opened this issue Mar 30, 2016 · 1 comment
Closed

Error with connection.revoke_token #14

denny99 opened this issue Mar 30, 2016 · 1 comment
Assignees
Labels

Comments

@denny99
Copy link

denny99 commented Mar 30, 2016

When trying to revoke the refresh token with connection.revoke_token(refresh_token, function (err, result) {}) the program stops with the following error

c:\Users\Denny\WebstormProjects\localvoucher\node_modules\figo\lib\figo.js:238
callback(error, result);
^

TypeError: callback is not a function
at c:\Users\Denny\WebstormProjects\localvoucher\node_modules\figo\lib\figo.js:238:7
at IncomingMessage. (c:\Users\Denny\WebstormProjects\localvoucher\node_modules\figo\lib\figo.js:128:9)
at emitNone (events.js:85:20)
at IncomingMessage.emit (events.js:179:7)
at endReadableNT (_stream_readable.js:906:12)
at nextTickCallbackWith2Args (node.js:475:9)
at process._tickDomainCallback (node.js:430:17)

The function revoke_token calls this.query_api(/auth/revoke? + querystring.stringify(options), callback); but query_api requires 3 parameters.

Used version: 1.3.3

@mfilenko mfilenko self-assigned this Jun 29, 2016
@mfilenko mfilenko added the bug label Jun 29, 2016
@mfilenko
Copy link
Contributor

Hey @denny99,

Thanks for reporting and sorry for that bug! It was fixed in the latest build. Please, update your copy of SDK.

Best,
Max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants