2026-03-07 15:58:12 +01:00
|
|
|
import { redirect } from "@sveltejs/kit";
|
|
|
|
|
|
2025-10-25 22:04:41 +02:00
|
|
|
export async function load({ locals }) {
|
2026-03-07 15:58:12 +01:00
|
|
|
if (locals.authStatus?.authenticated) {
|
|
|
|
|
redirect(302, "/me");
|
|
|
|
|
}
|
2026-03-04 22:27:54 +01:00
|
|
|
return {
|
|
|
|
|
authStatus: locals.authStatus,
|
|
|
|
|
};
|
2025-10-25 22:04:41 +02:00
|
|
|
}
|