diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-22 15:31:55 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-22 15:31:55 +0000 |
| commit | 95fc3a0825795b15a387707ac8cb2cb0df3f4c27 (patch) | |
| tree | 71cc8a672b55f9b7903bb8025561ee3b98513034 /apps/web/server/auth.ts | |
| parent | 2cd2f92e9e0c82eaa5f21fe0c30e20ebea7aba24 (diff) | |
| download | karakeep-95fc3a0825795b15a387707ac8cb2cb0df3f4c27.tar.zst | |
feature: Add an option to disable new signups
Diffstat (limited to 'apps/web/server/auth.ts')
| -rw-r--r-- | apps/web/server/auth.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/web/server/auth.ts b/apps/web/server/auth.ts index 767bc7e8..acc3745c 100644 --- a/apps/web/server/auth.ts +++ b/apps/web/server/auth.ts @@ -5,12 +5,10 @@ import NextAuth, { getServerSession, NextAuthOptions, } from "next-auth"; -import AuthentikProvider from "next-auth/providers/authentik"; import CredentialsProvider from "next-auth/providers/credentials"; import { Provider } from "next-auth/providers/index"; import { db } from "@hoarder/db"; -import serverConfig from "@hoarder/shared/config"; import { validatePassword } from "@hoarder/trpc/auth"; declare module "next-auth/jwt" { @@ -63,10 +61,6 @@ const providers: Provider[] = [ }), ]; -if (serverConfig.auth.authentik) { - providers.push(AuthentikProvider(serverConfig.auth.authentik)); -} - export const authOptions: NextAuthOptions = { // https://github.com/nextauthjs/next-auth/issues/9493 adapter: DrizzleAdapter(db) as Adapter, |
