diff options
| author | MohamedBassem <me@mbassem.com> | 2024-02-06 13:12:21 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-02-06 13:12:21 +0000 |
| commit | 4c901d073376ab9fd37284801011a12261d5963d (patch) | |
| tree | 537eaea0b85c057dd1b7490afe755c634febece0 /web/lib/auth.ts | |
| parent | 2518a99d1c296dc838edc2330dc6eb6fe5aead8e (diff) | |
| download | karakeep-4c901d073376ab9fd37284801011a12261d5963d.tar.zst | |
Linting and formatting
Diffstat (limited to 'web/lib/auth.ts')
| -rw-r--r-- | web/lib/auth.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/lib/auth.ts b/web/lib/auth.ts index 9b21e605..8b6527ec 100644 --- a/web/lib/auth.ts +++ b/web/lib/auth.ts @@ -1,5 +1,5 @@ -import NextAuth, { NextAuthOptions } from "next-auth" -import { PrismaAdapter } from "@next-auth/prisma-adapter" +import NextAuth, { NextAuthOptions } from "next-auth"; +import { PrismaAdapter } from "@next-auth/prisma-adapter"; import AuthentikProvider from "next-auth/providers/authentik"; import serverConfig from "@/lib/config"; import prisma from "@/lib/prisma"; @@ -15,11 +15,11 @@ export const authOptions: NextAuthOptions = { adapter: PrismaAdapter(prisma), providers: providers, callbacks: { - session({ session, token, user }) { + session({ session, user }) { session.user = { ...user }; return session; - } - } + }, + }, }; export const authHandler = NextAuth(authOptions); |
