11 lines
351 B
TypeScript
11 lines
351 B
TypeScript
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)
|