Skip to content

Commit c34d9fc

Browse files
authored
Merge pull request #89 from dcblogdev/add-id-to-is-connected-inside-get-access-token
added $id to isConnected
2 parents 132f490 + f109d36 commit c34d9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MsGraph.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function getAccessToken(?string $id = null, bool $redirectWhenNotConnecte
195195
$id = $this->getUserId($id);
196196

197197
if ($this->getUser() === null && $redirectWhenNotConnected) {
198-
if (! $this->isConnected()) {
198+
if (! $this->isConnected($id)) {
199199
return redirect()->away(config('msgraph.redirectUri'));
200200
}
201201
}

0 commit comments

Comments
 (0)