Merge pull request #71 from jcreek/60-if-you-sign-out-the-basket-doesnt-get-cleared

60 if you sign out the basket doesnt get cleared
This commit is contained in:
Josh Creek
2024-11-10 18:53:27 +00:00
committed by GitHub
2 changed files with 33 additions and 12 deletions
-7
View File
@@ -78,12 +78,5 @@ export const actions: Actions = {
return {
name
};
},
signout: async ({ locals: { supabase, safeGetSession } }) => {
const { session } = await safeGetSession();
if (session) {
await supabase.auth.signOut();
redirect(303, '/');
}
}
};