diff options
Diffstat (limited to 'apps/web/server/auth.ts')
| -rw-r--r-- | apps/web/server/auth.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/apps/web/server/auth.ts b/apps/web/server/auth.ts index 950443b9..767bc7e8 100644 --- a/apps/web/server/auth.ts +++ b/apps/web/server/auth.ts @@ -1,15 +1,18 @@ -import NextAuth, { NextAuthOptions, getServerSession } from "next-auth"; import type { Adapter } from "next-auth/adapters"; +import { DrizzleAdapter } from "@auth/drizzle-adapter"; +import NextAuth, { + DefaultSession, + getServerSession, + NextAuthOptions, +} from "next-auth"; import AuthentikProvider from "next-auth/providers/authentik"; -import serverConfig from "@hoarder/shared/config"; -import { validatePassword } from "@hoarder/trpc/auth"; -import { db } from "@hoarder/db"; -import { DefaultSession } from "next-auth"; import CredentialsProvider from "next-auth/providers/credentials"; -import { DrizzleAdapter } from "@auth/drizzle-adapter"; - 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" { export interface JWT { user: { |
