final-video

This commit is contained in:
Hunter Johnston
2023-02-05 14:09:50 -05:00
parent 28b1cb60f1
commit de136939fc
14 changed files with 284 additions and 30 deletions

10
src/hooks.server.ts Normal file
View File

@@ -0,0 +1,10 @@
import { handleHooks } from "@lucia-auth/sveltekit"
import { auth } from "$lib/server/lucia"
import type { Handle } from "@sveltejs/kit"
import { sequence } from "@sveltejs/kit/hooks"
export const customHandle: Handle = async ({ resolve, event }) => {
return resolve(event)
}
export const handle: Handle = sequence(handleHooks(auth), customHandle)