Praise be to god (Alhamdulillaah)
I tried to edit this file located at /vendor/fof/oauth/src/Providers/Google.php
public function provider(string $redirectUri): AbstractProvider
{
return new GoogleProvider([
'clientId' => $this->getSetting('client_id'),
'clientSecret' => $this->getSetting('client_secret'),
'redirectUri' => $redirectUri,
'approvalPrompt' => 'force',
'hostedDomain' => **null**,
'accessType' => 'offline',
]);
}
and edited 'hostedDomain' => null, to domain I want to restrict users to
and it works!
But I think it's better to include it in the extension's option page..
Thanks for the extension!