refactor: outsource auth function in all routes
This commit is contained in:
@@ -6,6 +6,7 @@ export const Route = createFileRoute("/")({
|
||||
if (!(await isAuthenticated())) {
|
||||
throw redirect({
|
||||
to: "/login",
|
||||
search: { loggedOut: true },
|
||||
});
|
||||
} else {
|
||||
throw redirect({
|
||||
|
||||
Reference in New Issue
Block a user