TofuStack/src/routes/(app)/+page.server.ts
2024-06-25 11:14:45 -05:00

12 lines
No EOL
246 B
TypeScript

export const load = async ({ locals }) => {
const user = await locals.getAuthedUser();
return { user: user };
};
export const actions = {
logout: async ({ locals }) => {
console.log("Logging out")
await locals.api.iam.logout.$post()
}
}