Scope social login callbacks per flow

This commit is contained in:
Codex Agent
2026-01-23 20:38:22 +01:00
parent 7ee91ff7d7
commit 9ab230f5b7
8 changed files with 8 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ class CheckoutGoogleController extends Controller
$request->session()->put('selected_package_id', $payload['package_id']);
return Socialite::driver('google')
->redirectUrl(route('checkout.google.callback'))
->scopes(['email', 'profile'])
->with(['prompt' => 'select_account'])
->redirect();