Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 24 lines 594 B view raw
1import { DrizzleAdapter } from "@auth/drizzle-adapter"; 2import type { Adapter } from "next-auth/adapters"; 3 4import { db } from "@openstatus/db"; 5import { 6 verificationToken, 7 viewer, 8 viewerAccounts, 9 viewerSession, 10} from "@openstatus/db/src/schema"; 11 12export const adapter: Adapter = { 13 ...DrizzleAdapter(db, { 14 // @ts-ignore 15 usersTable: viewer, 16 // NOTE: only need accounts for external providers 17 // @ts-ignore 18 accountsTable: viewerAccounts, 19 // @ts-ignore 20 sessionsTable: viewerSession, 21 // @ts-ignore 22 verificationTokensTable: verificationToken, 23 }), 24};