Googleapis revokeCredentials does not return result on successful callback
As per the test suite , the callback function passed to revokeCredentials
gets the result object if the operation was successful, which should contain a success
property. However, when I use this snippet:
oauth2client.revokeCredentials(function (error, result) {
if (error || !result.success) {
console.error('Failed to revoke credentials!');
console.error(error || result);
} else {
//...
}
});
I get: TypeError: Cannot read property 'success' of undefined
- am I missing something?
+3
source to share
No one has answered this question yet
Check out similar questions: