9 lines
223 B
TypeScript
9 lines
223 B
TypeScript
import type { LayoutServerLoad } from "./$types";
|
|
|
|
export const load: LayoutServerLoad = async ({ locals: { guard } }) => {
|
|
const user = guard.requiresAuth().orRedirects().getUser();
|
|
|
|
return {
|
|
user,
|
|
}
|
|
}; |