Skip to content

Commit

Permalink
Fix merge 'pgrimaud:master into master' conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmle committed Apr 20, 2024
1 parent ef019e0 commit 6c3dae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instagram/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function withCookies(array $session): CookieJar
preg_match('/\"csrf_token\":\"(.*?)\"/', $html, $matches);

if (isset($matches[1])) {
$data = json_decode(json_decode("{{$matches[0]}}")->raw);
$data = $matches[1];

if (!isset($data->config->viewer) && !isset($data->config->viewerId)) {
throw new InstagramAuthException('Please login with instagram credentials.');
Expand Down

0 comments on commit 6c3dae4

Please sign in to comment.