src/routes/(authn)/sign-out/+page.server.ts
import { Signing } from '$lib/auth/signing'
import { redirect, type Actions } from '@sveltejs/kit'
import type { PageServerLoad } from './$types'
export const load: PageServerLoad = async () => {
throw redirect(302, '/')
}
export const actions: Actions = {
default: async ({ cookies }) => {
await Signing.sign_out(cookies)
throw redirect(302, '/')
},
}