/** * @param BaseOAuth $client */ public function authCallback(BaseOAuth $client) { $user = Auth::clientUser($client); /** @var UserLoginForm $model */ $model = static::getModelClass('UserLoginForm', $user->attributes); $model->login(false); }