8 lines
212 B
TypeScript
8 lines
212 B
TypeScript
import { pb } from "$lib";
|
|
import { redirect } from "@sveltejs/kit";
|
|
import type { LayoutLoad } from "../$types";
|
|
|
|
export const load: LayoutLoad = () => {
|
|
if (pb.authStore.isValid) return redirect(303, "/");
|
|
};
|