mirror of
https://github.com/ProjectSegfault/website.git
synced 2025-01-13 15:22:05 +05:30
14 lines
350 B
TypeScript
14 lines
350 B
TypeScript
|
import { SvelteKitAuth } from "@auth/sveltekit"
|
||
|
import Authentik from '@auth/core/providers/authentik';
|
||
|
import config from "$lib/config";
|
||
|
|
||
|
export const handle = SvelteKitAuth({
|
||
|
providers: [
|
||
|
//@ts-ignore
|
||
|
Authentik({
|
||
|
clientId: config.app.auth.clientId,
|
||
|
clientSecret: config.app.auth.clientSecret,
|
||
|
issuer: config.app.auth.issuer
|
||
|
})
|
||
|
]
|
||
|
})
|