Skip to content

Commit

Permalink
rreturn cached token
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi committed Apr 5, 2024
1 parent 1f82bff commit e5f5c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oidc_cli/oidc_impl/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ func (c *Cache) refresh(ctx context.Context) (*client.Token, error) {
}
logrus.Info("...got cachedToken2 ", cachedToken2)

return token, nil
logrus.Info("...returning cached token")
return cachedToken2, nil
}

// reads token from storage, potentially returning a nil/expired token
Expand Down

0 comments on commit e5f5c99

Please sign in to comment.