Skip to content

Commit

Permalink
fix(auth): Setting expireEarly to default when the value is 0 (#10732)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh authored Aug 22, 2024
1 parent 6f026e3 commit 5e67869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (ctpo *CachedTokenProviderOptions) autoRefresh() bool {
}

func (ctpo *CachedTokenProviderOptions) expireEarly() time.Duration {
if ctpo == nil {
if ctpo == nil || ctpo.ExpireEarly == 0 {
return defaultExpiryDelta
}
return ctpo.ExpireEarly
Expand Down

0 comments on commit 5e67869

Please sign in to comment.