phpoauth-2.0yii2google-oauthyii2-user

Yii2 Class yii\authclient\clients\GoogleOAuth does not exist


I use dektrium/yii2-user (on one project) and yiisoft/yii2-authclient (on another one) to login via Google account. Some time ago it was everything ok, but i guess after last composer update something was changed and now i get an error: "Class yii\authclient\clients\GoogleOAuth does not exist" when try to open login page. Does anybody has the same issue or know what's wrong? Thank you


Solution

  • In the config file Replace from

    'google'   => [
                'class'        => 'yii\authclient\clients\GoogleOAuth',
                ..
            ],
    

    Replace to

    'google' => [ 'class' => 'yii\authclient\clients\Google', ... ],