protected function createResponseAuthModel(BaseUser $user)
    {
        $user = $this->userService->updateUserRefreshToken($user);
        $authTokenModel = $this->authTokenService->createAuthTokenModel($user);

        return new ResponseAuthenticationModel($user, $authTokenModel, $user->getAuthRefreshModel());
    }
protected function createResponseAuthModel(BaseUser $user)
    {
        $user = $this->userService->updateUserRefreshToken($user);
        $authTokenModel = $this->authTokenService->createAuthTokenModel($user);

        return new ResponseAuthenticationModel($user, $authTokenModel, $user->getAuthRefreshModel());
    }
protected function createResponseAuthModel ( BaseUser $ user ) { $ user = $ this -> userService -> updateUserRefreshToken ( $ user ) ; $ authTokenModel = $ this -> authTokenService -> createAuthTokenModel ( $ user ) ; return new ResponseAuthenticationModel ( $ user , $ authTokenModel , $ user -> getAuthRefreshModel ( ) ) ; }
Creates a credentials model for the user

@param BaseUser $user
@return ResponseAuthenticationModel
Creates a credentials model for the user