Skip to content

NOW MANAGED ON CODEBERG

Add select account parameter for google authorization

Justin Steina76599bd2aaf
diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php
index 87db1d5c6..024a1e736 100644
--- a/app/Auth/Access/SocialAuthService.php
+++ b/app/Auth/Access/SocialAuthService.php
@@ -52,6 +52,9 @@ class SocialAuthService
public function startRegister($socialDriver)
{
$driver = $this->validateDriver($socialDriver);
+ if ($socialDriver == 'google') {
+ return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
+ }
return $this->socialite->driver($driver)->redirect();
}