mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
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:
@@ -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, '/');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user