auth: CachedTokenProviderOptions.DisableAutoRefresh returns nil token and nil err #10414
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The logic in cachedTokenProvider.Token does not check if the token is non-nil before returning it when
cachedTokenProvider.autoRefresh
isfalse
.Code
Expected behavior
The
CachedTokenProvider
should fetch a new token the first timeToken
is called, even whenDisableAutoRefresh
istrue
.Actual behavior
The
CachedTokenProvider
returnsnil
token andnil
err the first timeToken
is called whenDisableAutoRefresh
istrue
.The text was updated successfully, but these errors were encountered: