src/base/User.php
public function setRemoteUser(ClientInterface $client, IdentityInterface $user)
    {
        $model = $this->getRemoteUser($client);
        $model->client_id = $user->getId();
        $model->save();

        return $user;
    }
public function setRemoteUser(ClientInterface $client, IdentityInterface $user)
    {
        $model = $this->getRemoteUser($client);
        $model->client_id = $user->getId();
        $model->save();

        return $user;
    }
public function setRemoteUser ( ClientInterface $ client , IdentityInterface $ user ) { $ model = $ this -> getRemoteUser ( $ client ) ; $ model -> client_id = $ user -> getId ( ) ; $ model -> save ( ) ; return $ user ; }
Inserts or updates RemoteUser.
@return IdentityInterface user
Inserts or updates RemoteUser .