mirror of
https://github.com/ProjectSegfault/website
synced 2026-05-26 00:20:24 +05:30
add segfaultapi functionality and use postgres
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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
|
||||
})
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user