CakeDC/Users gmail error

@evansLY
Tue, 03 Sep 2024 16:00:50 +0000

Warning (2) : Undefined array key "email" [in /home4/benqpsmy/public_html/devsys/vendor/cakedc/users/src/Model/Behavior/SocialBehavior.php, line 288]

Went through all the setup and installation, got all my apis and connecting to google. However it’s throwing and error message. So I debugged it some and at a lose or brain dead at the moment.

Traced it to the following function.

public function findExistingForSocialLogin(\Cake\ORM\Query\SelectQuery $query, array $options)
    {

        debug($options);
        debug($options['email']);

        exit;
        return $query->where([
            $this->_table->aliasField('email') => $options['email'],
        ]);
    }

Which debugs out to

ROOT/vendor/cakedc/users/src/Model/Behavior/SocialBehavior.php (line 285)
[
'options' => [
'email' => 'myemail@gmail.com',
],
]

Warning (2) : Undefined array key "email" [in /home4/benqpsmy/public_html/devsys/vendor/cakedc/users/src/Model/Behavior/SocialBehavior.php, line 286]
ROOT/vendor/cakedc/users/src/Model/Behavior/SocialBehavior.php (line 286)
null

Why is the first debug obviously showing the email key but the second is saying it’s null? Where did I go wrong or do?