From 7f8b17cbc5d0c35301d85992f27de2fcc6af0185 Mon Sep 17 00:00:00 2001 From: henry yo Date: Fri, 26 Jun 2026 01:07:56 +0800 Subject: [PATCH] fix: auth url --- app/Http/Controllers/Auth/GoogleAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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