Skip to content

Commit f377fed

Browse files
committed
proper expiry logic
1 parent be0c0c0 commit f377fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KubernetesClient/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public function getToken()
419419
{
420420
if ($this->getIsAuthProvider()) {
421421
// set token if expired
422-
if ($this->getExpiry() && $this->getExpiry() >= time()) {
422+
if ($this->getExpiry() && time() >= $this->getExpiry()) {
423423
$this->getAuthProviderToken();
424424
}
425425

0 commit comments

Comments
 (0)