Skip to content

NOW MANAGED ON CODEBERG

Added Google select account functionality to login

Justin Stein216358c6e4fa
diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php
index 092f5212c..a9adec93e 100644
--- a/app/Auth/Access/SocialAuthService.php
+++ b/app/Auth/Access/SocialAuthService.php
@@ -40,6 +40,9 @@ class SocialAuthService
public function startLogIn($socialDriver)
{
$driver = $this->validateDriver($socialDriver);
+ if ($socialDriver == 'google' && env('GOOGLE_SELECT_ACCOUNT')) {
+ return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
+ }
return $this->socialite->driver($driver)->redirect();
}