Fix sign in redirect unauthorized error

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-26 09:15:24 +01:00
parent 408f7b4d59
commit 608d0babd2

View File

@@ -46,7 +46,7 @@ export default function LoginPage() {
throw new Error(error.message || "Failed to login");
}
navigate("/", { replace: true });
window.location.href = "/";
} catch (error: unknown) {
toast({
title: "Error",