add log for sign in, sign out, change password, remove upload file
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, Outlet, redirect } from '@tanstack/react-router';
|
||||
import { createFileRoute, Outlet } from '@tanstack/react-router';
|
||||
|
||||
export const Route = createFileRoute('/(app)/(auth)')({
|
||||
beforeLoad: async ({ context }) => {
|
||||
if (!context.userSession) {
|
||||
throw redirect({ to: '/sign-in' });
|
||||
}
|
||||
},
|
||||
// beforeLoad: async ({ context }) => {
|
||||
// if (!context.userSession) {
|
||||
// throw redirect({ to: '/sign-in' });
|
||||
// }
|
||||
// },
|
||||
component: RouteComponent,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user