Openstatus www.openstatus.dev

chore: extend user with db user (#807)

authored by

Maximilian Kaske and committed by
GitHub
49f8ba57 2636e1c9

+3 -7
+3 -7
apps/web/src/next-auth.d.ts
··· 1 - import type { DefaultUser } from "next-auth"; 1 + import type NextAuth from "next-auth"; 2 2 3 - // FIXME: this is very wrong - no type `DefaultUser` exists 4 - // also doenst provide autocomplete and type safety-ness 3 + import type { User as DefaultUserSchema } from "@openstatus/db/src/schema"; 5 4 6 5 declare module "next-auth" { 7 - interface User extends Omit<DefaultUser, "id"> { 8 - id: number; 9 - email: string; 10 - } 6 + interface User extends DefaultUserSchema {} 11 7 }