From 5203fd196530becb2ede069a20802faa1dca379d Mon Sep 17 00:00:00 2001 From: Dieter Coopman Date: Thu, 30 May 2024 11:29:24 +0200 Subject: [PATCH] reload access token from session on refresh Signed-off-by: Dieter Coopman --- src/Traits/Authenticate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Traits/Authenticate.php b/src/Traits/Authenticate.php index 0e7ecde..b58059a 100644 --- a/src/Traits/Authenticate.php +++ b/src/Traits/Authenticate.php @@ -37,6 +37,7 @@ private function getAccessToken() if (isset($accessData->access_token)) { if (Carbon::createFromTimestamp($accessData->expires_on)->lte(Carbon::now())) { $this->refreshAccessToken($accessData->refresh_token); + $accessData = decrypt(session('microsoftgraph-access-data')); } return $accessData->access_token;