src/Authorizer/GoogleAuthorizer.php
public function verifyCredentials(array $credentials)
    {
        $this->verifyRequiredFields($credentials, ['token', 'username']);

        $token = $credentials['token'];
        $username = $credentials['username'];

        $payload = $this->google_client->verifyIdToken($token)->getAttributes()['payload'];
        $this->verifyGoogleProfile($payload, $username);
        $this->user_profile = $payload;

        $user = $this->user_repository->findByUsername($username);
        $this->verifyUser($user);

        return $user;
    }
public function verifyCredentials(array $credentials)
    {
        $this->verifyRequiredFields($credentials, ['token', 'username']);

        $token = $credentials['token'];
        $username = $credentials['username'];

        $payload = $this->google_client->verifyIdToken($token)->getAttributes()['payload'];
        $this->verifyGoogleProfile($payload, $username);
        $this->user_profile = $payload;

        $user = $this->user_repository->findByUsername($username);
        $this->verifyUser($user);

        return $user;
    }
Credentials should be in array format with keys: token and username.
Example: ['token' => '123abc', 'username' => 'john.doe.123@gmail.com'].

{@inheritdoc}