Skip to content

Commit b83386e

Browse files
authored
Cache credentials forever
Credit @accesstechnology
2 parents 7fe16e2 + ff677c5 commit b83386e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OauthCredentialManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function refresh()
8787

8888
public function store(AccessTokenInterface $token, $tenantId = null)
8989
{
90-
$this->cache->set($this->cacheKey, [
90+
$this->cache->forever($this->cacheKey, [
9191
'token' => $token->getToken(),
9292
'refresh_token' => $token->getRefreshToken(),
9393
'id_token' => $token->getValues()['id_token'],
@@ -121,4 +121,4 @@ protected function data($key = null)
121121
$cacheData = $this->cache->get($this->cacheKey);
122122
return empty($key) ? $cacheData : ($cacheData[$key] ?? null);
123123
}
124-
}
124+
}

0 commit comments

Comments
 (0)