I am trying to social login with authClient and when adds widget to render it gives error :
Class 'yii\authclient\widgets\AuthChoice' not found
while Class is there. widget code is :
<?= yii\authclient\widgets\AuthChoice::widget([
'baseAuthUrl' => ['site/auth'],
'popupMode' => false,
]) ?>
You need to install it first
composer require --prefer-dist yiisoft/yii2-authclient "*"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.