diff --git a/app/Http/Controllers/Auth/GoogleAuthController.php b/app/Http/Controllers/Auth/GoogleAuthController.php index 14a5fe9..0db340b 100644 --- a/app/Http/Controllers/Auth/GoogleAuthController.php +++ b/app/Http/Controllers/Auth/GoogleAuthController.php @@ -46,6 +46,6 @@ class GoogleAuthController extends Controller $token = $user->createToken('auth_token')->plainTextToken; // 把 token 帶回前端 - return redirect("http://localhost:5173/#/auth/callback?token={$token}&name=" . urlencode($user->name)); + return redirect(env('APP_URL') . "/#/auth/callback?token={$token}&name=" . urlencode($user->name)); } } \ No newline at end of file