mirror of
https://github.com/BradNut/TofuStack
synced 2025-09-08 17:40:26 +00:00
12 lines
No EOL
246 B
TypeScript
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()
|
|
}
|
|
} |