Open
Description
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 its cachedCredentials
's scopes (perhaps via a simple getter/setter hook on GoogleAuth
itself).
Dependencies: