Skip to content

Open-source status page, incident response and uptime monitoring

chore: extend user with db user (#807)

Maximilian Kaske49f8ba574865
diff --git a/apps/web/src/next-auth.d.ts b/apps/web/src/next-auth.d.ts
index b8241f8cc..e76480f20 100644
--- a/apps/web/src/next-auth.d.ts
+++ b/apps/web/src/next-auth.d.ts
@@ -1,11 +1,7 @@
-import type { DefaultUser } from "next-auth";
+import type NextAuth from "next-auth";
-// FIXME: this is very wrong - no type `DefaultUser` exists
-// also doenst provide autocomplete and type safety-ness
+import type { User as DefaultUserSchema } from "@openstatus/db/src/schema";
declare module "next-auth" {
- interface User extends Omit<DefaultUser, "id"> {
- id: number;
- email: string;
- }
+ interface User extends DefaultUserSchema {}
}