webcompile/src/hooks.server.ts

14 lines
341 B
TypeScript
Raw Normal View History

import { SvelteKitAuth } from "@auth/sveltekit"
import Authentik from '@auth/core/providers/authentik';
2022-12-31 17:44:53 +05:30
import { env } from "$env/dynamic/private";
export const handle = SvelteKitAuth({
providers: [
//@ts-ignore
Authentik({
2022-12-31 17:44:53 +05:30
clientId: env.AUTH_CLIENT_ID,
clientSecret: env.AUTH_CLIENT_SECRET,
issuer: env.AUTH_ISSUER
})
]
})