when I update data in the User model, the Auth data is not updated.
How can I \"refresh\" the data which is returned by $this->Auth->user() when I am updating user model
CakePHP 4 answer: -
$this->Authentication->getResult()->getData()->offsetSet('fullname', $user->fullname);
Where fullname is to be replaced by the user entity's field-name you have changed.
There may be a better way, but this is what I found after a lot of playing (and at this moment CakePHP 4 API has yet to be published https://api.cakephp.org/4.0/)