mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user