Skip to content

Commit

Permalink
fix: extracting Tiktok user from nested property (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno authored Mar 28, 2023
1 parent 484a9f4 commit c306089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function getUserByToken($token)
*/
protected function mapUserToObject($user)
{
$user = $user['data'];
$user = $user['data']['user'];

return (new User())->setRaw($user)->map([
'id' => $user['open_id'],
Expand Down

0 comments on commit c306089

Please sign in to comment.