diff --git a/src/MsGraph.php b/src/MsGraph.php index 46ab32c..2bf6f4f 100755 --- a/src/MsGraph.php +++ b/src/MsGraph.php @@ -195,7 +195,7 @@ public function getAccessToken(?string $id = null, bool $redirectWhenNotConnecte $id = $this->getUserId($id); if ($this->getUser() === null && $redirectWhenNotConnected) { - if (! $this->isConnected()) { + if (! $this->isConnected($id)) { return redirect()->away(config('msgraph.redirectUri')); } }