RevokeToken()
returns void
, not RevokeCredentialsResult
#1900
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
size: l
Pull request size is large.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hello,
While using the google-auth-library-nodejs, I noticed a discrepancy between the documented behavior and the actual implementation.
The library provides a method for revoking an access or refresh token obtained during OAuth communication. The method is defined as follows:
According to this definition, calling
revokeToken()
should return theRevokeCredentialsResult
instance within thedata
property of the response. However, in actual usage, thesuccess
property was undefined. Upon inspecting the full response, thedata
property itself was an empty object{}
.When I tested the Revoke Token API using the
OAuth 2.0 Playground
, the response body was also empty. Based on this, I suspect one of the following:1. Library Issue: The API spec might not include a response body, but the library mistakenly expects one.
2. API Issue: The API spec might include a response body, but the current API implementation omits the success property.
If it turns out to be the first case, I would be honored to contribute by fixing the issue myself. Please let me know if you can provide any clarification on this. Thank you!
The text was updated successfully, but these errors were encountered: