Skip to content

Commit 0f23b70

Browse files
committed
Fix issue when connecting with specified ID
When connecting with a specified user ID there was an error because the id was wrongly forwarded when fetching the user details for the first time. This was due to the __call-method having a new parameter adde to it.
1 parent 9c5c24a commit 0f23b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MsGraph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function connect($id = null)
8888
$result = $this->storeToken($accessToken->getToken(), $accessToken->getRefreshToken(), $accessToken->getExpires(), $id);
8989

9090
//get user details
91-
$me = Api::get('me', null, $id);
91+
$me = Api::get('me', null, [], $id);
9292

9393
$event = [
9494
'token_id' => $result->id,

0 commit comments

Comments
 (0)