Skip to content

Commit 0eb6116

Browse files
committed
Update redirect URL in SocialAuthController for consistency in authentication flow
This commit modifies the redirect URL in the handleGoogleCallback method of the SocialAuthController from '/auth/callback' to '/authenticate'. This change aligns the URL with the intended authentication flow, ensuring a more coherent user experience during the login process.
1 parent 7620396 commit 0eb6116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/SocialAuthController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function handleGoogleCallback(): RedirectResponse
5959
$secure = config('app.env') === 'production';
6060

6161

62-
return redirect("{$frontendUrl}/auth/callback")->cookie('accessToken', $accessToken,
62+
return redirect("{$frontendUrl}/authenticate")->cookie('accessToken', $accessToken,
6363
Carbon::now()->addMinutes(config('passport.token_ttl'))->timestamp,
6464
'/', $domain, $secure, true, false, 'none') // ttl, path, domain, secure, httpOnly, raw, sameSite
6565
->cookie('refreshToken', $refreshToken,

0 commit comments

Comments
 (0)