Skip to content

Commit

Permalink
Merge pull request #89 from dcblogdev/add-id-to-is-connected-inside-g…
Browse files Browse the repository at this point in the history
…et-access-token

added $id to isConnected
  • Loading branch information
dcblogdev authored Nov 19, 2024
2 parents 132f490 + f109d36 commit c34d9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MsGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}
Expand Down

0 comments on commit c34d9fc

Please sign in to comment.