UPDATE: fix buyg+

This commit is contained in:
2026-05-08 11:17:17 +07:00
parent ce4bc4f2a5
commit 6f163c3730
4 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -115,9 +115,10 @@ export default function SignInForm() {
// Redirect back to the same origin (avoid hard-coded port/env mismatches).
const redirectUrl =
typeof window !== "undefined" ? window.location.origin : HOME_URL;
window.location.href = `${API.Auth.GOOGLE_LOGIN}?redirect=${encodeURIComponent(
const googleUrl = `${API.Auth.GOOGLE_LOGIN}?redirect=${encodeURIComponent(
redirectUrl
)}`;
router.push(googleUrl);
}}
className="inline-flex items-center justify-center gap-3 py-3 text-sm font-normal text-gray-700 transition-colors bg-gray-100 rounded-lg px-7 hover:bg-gray-200 hover:text-gray-800 dark:bg-white/5 dark:text-white/90 dark:hover:bg-white/10"
>
+2 -1
View File
@@ -166,9 +166,10 @@ export default function SignUpForm() {
// Redirect back to the same origin (avoid hard-coded port/env mismatches).
const redirectUrl =
typeof window !== "undefined" ? window.location.origin : HOME_URL;
window.location.href = `${API.Auth.GOOGLE_LOGIN}?redirect=${encodeURIComponent(
const googleUrl = `${API.Auth.GOOGLE_LOGIN}?redirect=${encodeURIComponent(
redirectUrl
)}`;
router.push(googleUrl);
}}
className="inline-flex items-center justify-center gap-3 py-3 text-sm font-normal text-gray-700 transition-colors bg-gray-100 rounded-lg px-7 hover:bg-gray-200 hover:text-gray-800 dark:bg-white/5 dark:text-white/90 dark:hover:bg-white/10"
>