Fix sign in redirect unauthorized error
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -46,7 +46,7 @@ export default function LoginPage() {
|
|||||||
throw new Error(error.message || "Failed to login");
|
throw new Error(error.message || "Failed to login");
|
||||||
}
|
}
|
||||||
|
|
||||||
navigate("/", { replace: true });
|
window.location.href = "/";
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
toast({
|
toast({
|
||||||
title: "Error",
|
title: "Error",
|
||||||
|
|||||||
Reference in New Issue
Block a user