- if ($driver == 'google' && config('services.google.select_account'))
- {
- return $this->socialite->driver($driver)->with(['prompt' => 'select_account']);
+ $driver = $this->socialite->driver($driverName);
+
+ if ($driverName === 'google' && config('services.google.select_account')) {
+ $driver->with(['prompt' => 'select_account']);
+ }
+ if ($driverName === 'azure') {
+ $driver->with(['resource' => 'https://graph.windows.net']);