Moving auth pages back to the root

This commit is contained in:
2025-04-28 01:24:54 +02:00
parent d38bb7d986
commit 14aea2a475
8 changed files with 19 additions and 116 deletions

View File

@@ -72,7 +72,7 @@ const authProvider: AuthProvider = {
if (get_user() == null) {
return {
authenticated: false,
redirectTo: "/auth/login",
redirectTo: "/login",
logout: true
}
}
@@ -154,7 +154,7 @@ const authProvider: AuthProvider = {
if (error?.status === 401) {
forget_user();
return {
redirectTo: "/auth/login",
redirectTo: "/login",
logout: true,
error: { message: "Authentication required" },
} as OnErrorResponse;