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.
1 parent e62bd8e commit 7522ea6Copy full SHA for 7522ea6
1 file changed
src/Models/OAuth2.php
@@ -192,7 +192,7 @@ protected function checkTokens()
192
{
193
$access_token = $this->access_token ? unserialize($this->access_token, ['allowed_classes' => [AccessToken::class]]) : null;
194
195
- if (!empty($access_token) && $access_token->hasExpired()) {
+ if (!empty($access_token) && $access_token instanceof AccessToken && $access_token->hasExpired()) {
196
// Tentativo di refresh del token di accesso
197
$refresh_token = $this->refresh_token;
198
if (!empty($refresh_token)) {
0 commit comments