need help AuthClient error "id"

Hi,

need help

the after install AuthClient for yii2

do not access users/registration

config file add

======

‘clients’ => [

‘facebook’ => [

      'class' => 'yii\authclient\clients\Facebook',


      'clientId' => 'secret',


      'clientSecret' => 'secret',


],

],

========

Controller add

========

public function actions()

{

return [

'auth' => [


   'class' => 'yii\authclient\AuthAction',


   'successCallback' => [$this, 'successCallback'],


],

];

}

public function actionRegistration()

{

$model = new Shopuser();


return $this->render('registration');

}

public function successCallback($client)

{

$attributes = $client->getUserAttributes();

// user login or signup comes here

}

==========

view file add

=========

<?= yii\authclient\widgets\AuthChoice::widget([

 'baseAuthUrl' =&gt; ['users/registrations']

]) ?>

=========

Tell me what I not so made

Тhanks!

solution

need to be removed config file

‘authClientCollection’ => [

‘class’ => ‘yii\authclient\Collection’,

‘clients’ => [

‘facebook’ => [

‘class’ => ‘yii\authclient\clients\Facebook’,

‘clientId’ => ‘xxxxxx’,

‘clientSecret’ => ‘xxxxxx’,

],

],

],

and through time back and it worked

glitch )

I do not know why but it works thanks