Update Navbar component and add logout functionality

This commit is contained in:
Sean Morley
2024-04-06 12:27:42 +00:00
parent 17e6125998
commit 1b9edeb61f
3 changed files with 4 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ export const load: PageServerLoad = async (event) => {
};
};
// handle the logout action
export const actions: Actions = {
default: async (event) => {
if (!event.locals.session) {