feat: Provide Mechanism to Change AuthClient Scopes Uniformly #1681
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Today, we don't have a clean way to change AuthClient scopes uniformly between instances, and different AuthClients offer varying functionality like this:
google-auth-library-nodejs/src/auth/jwtclient.ts
Lines 100 to 115 in 6c0a6bd
We should offer a uniform API for changing scopes for all AuthClients. Additionally, once this is implemented
GoogleAuth#scopes
should update itscachedCredentials
's scopes (perhaps via a simple getter/setter hook onGoogleAuth
itself).Dependencies:
AuthClient
Options #1663#scopes
args and properties tostring[]
#1676The text was updated successfully, but these errors were encountered: