+
+ /**
+ * Provide redirect options per service for the Laravel Socialite driver
+ * @param $driverName
+ * @return \Laravel\Socialite\Contracts\Provider
+ */
+ public function getSocialDriver(string $driverName)
+ {
+ $driver = $this->socialite->driver($driverName);
+
+ if ($driverName === 'google' && config('services.google.select_account')) {
+ $driver->with(['prompt' => 'select_account']);
+ }
+
+ return $driver;
+ }