diff options
| author | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
| commit | 6dcc7d18c9be5e3a5e0a3ff60668424ee0158b4e (patch) | |
| tree | 179aa936536510cc707368fc7c330c4c7fbdc3f8 /apps/web/src/server/auth.ts | |
| parent | novel editor (diff) | |
| parent | save user ID with url to ensure that same website can be saved by users (diff) | |
| download | supermemory-new-ui.tar.xz supermemory-new-ui.zip | |
Merge branch 'main' of https://github.com/Dhravya/supermemory into new-uinew-ui
Diffstat (limited to 'apps/web/src/server/auth.ts')
| -rw-r--r-- | apps/web/src/server/auth.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/src/server/auth.ts b/apps/web/src/server/auth.ts index c32efe55..95edcf35 100644 --- a/apps/web/src/server/auth.ts +++ b/apps/web/src/server/auth.ts @@ -1,7 +1,7 @@ import { env } from "@/env"; import NextAuth from "next-auth"; import Google from "next-auth/providers/google"; -import { DrizzleAdapter } from "@auth/drizzle-adapter" +import { DrizzleAdapter } from "@auth/drizzle-adapter"; import { db } from "./db"; export const { @@ -15,9 +15,9 @@ export const { ...session, user: { ...session.user, - id: user.id + id: user.id, }, - }) + }), }, adapter: DrizzleAdapter(db), providers: [ |