You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
249 B
TypeScript

import { useWebdavStore } from '@/store/webdav';
import { Context } from '@/middleware/Context';
export const auth = ({ next }: Context) => {
if (!useWebdavStore().currentSession?.isActive)
return next({ name: 'Login' });
return next();
};