feat!: Normalize #scopes
args and properties to string[]
#1676
Labels
Breaking Change
next major: breaking change
this is a change that we should wait to bundle into the next major version
priority: p3
Desirable enhancement or fix. May not be included in next release.
semver: major
Hint for users that this is an API breaking change.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Today, some
AuthClient
s have ascopes
property with ofstring | string[]
:google-auth-library-nodejs/src/auth/baseexternalclient.ts
Lines 140 to 145 in 4f94ffe
And we have to normalize in other places like this with code like this:
google-auth-library-nodejs/src/auth/computeclient.ts
Lines 51 to 55 in 4f94ffe
This is pretty inconsistency throughout the library. Additionally, this change will clarify to customers that may be confused as to if a
string
-typedscopes
property will be parsed into multiple scopes are not.Implementation Notes:
string[]
as parametersThe text was updated successfully, but these errors were encountered: