We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6edd1c7 + e4b8460 commit 4752137Copy full SHA for 4752137
src/Oauth2CredentialManagers/FileStore.php
@@ -91,13 +91,17 @@ public function refresh(): void
91
92
public function store(AccessTokenInterface $token, string $tenantId = null): void
93
{
94
- $this->files->put($this->filePath, json_encode([
+ $ret = $this->files->put($this->filePath, json_encode([
95
'token' => $token->getToken(),
96
'refresh_token' => $token->getRefreshToken(),
97
'id_token' => $token->getValues()['id_token'],
98
'expires' => $token->getExpires(),
99
'tenant_id' => $tenantId ?? $this->getTenantId()
100
]));
101
+
102
+ if ($ret === false) {
103
+ throw new \Exception("Failed to write to file: {$this->filePath}");
104
+ }
105
}
106
107
public function getUser(): ?array
0 commit comments