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