mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-05-03 18:21:20 +00:00
9 lines
207 B
TypeScript
9 lines
207 B
TypeScript
import { redirect } from '@sveltejs/kit';
|
|
|
|
export const load = async ({ locals }: { locals: App.Locals }) => {
|
|
if (!locals.pocketBase.authStore.isValid) {
|
|
throw redirect(303, '/auth');
|
|
}
|
|
|
|
return {};
|
|
};
|