Skip to content

Commit

Permalink
Merge pull request #206 from auth0/feat-sdk-2318
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims authored Feb 17, 2021
2 parents 064e633 + 7deed6d commit 7ffa11f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Auth0/Login/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ public function hasOnLogin()
*/
public function callOnLogin($auth0User)
{
return call_user_func($this->_onLoginCb, $auth0User);
$user = call_user_func($this->_onLoginCb, $auth0User);

$this->getSDK()->setUser($user);

return $user;
}

/**
Expand Down

0 comments on commit 7ffa11f

Please sign in to comment.