diff --git a/src/Console/Commands/MsGraphAdminKeepAliveCommand.php b/src/Console/Commands/MsGraphAdminKeepAliveCommand.php index f46d5b7..3cdf47b 100644 --- a/src/Console/Commands/MsGraphAdminKeepAliveCommand.php +++ b/src/Console/Commands/MsGraphAdminKeepAliveCommand.php @@ -14,7 +14,7 @@ class MsGraphAdminKeepAliveCommand extends Command public function handle(): void { if (MsGraphAdmin::isConnected()) { - MsGraphAdmin::getAccessToken($redirectWhenNotConnected = false); + MsGraphAdmin::getAccessToken($returnNullNoAccessToken = true); $this->comment('connected'); } } diff --git a/src/Console/Commands/MsGraphKeepAliveCommand.php b/src/Console/Commands/MsGraphKeepAliveCommand.php index 796f56a..e679ec9 100644 --- a/src/Console/Commands/MsGraphKeepAliveCommand.php +++ b/src/Console/Commands/MsGraphKeepAliveCommand.php @@ -14,7 +14,7 @@ class MsGraphKeepAliveCommand extends Command public function handle(): void { if (MsGraph::isConnected()) { - MsGraph::getAccessToken($redirectWhenNotConnected = false); + MsGraph::getAccessToken(null, $redirectWhenNotConnected = false); $this->comment('connected'); } }