···11-import type { DefaultUser } from "next-auth";
11+import type NextAuth from "next-auth";
2233-// FIXME: this is very wrong - no type `DefaultUser` exists
44-// also doenst provide autocomplete and type safety-ness
33+import type { User as DefaultUserSchema } from "@openstatus/db/src/schema";
5465declare module "next-auth" {
77- interface User extends Omit<DefaultUser, "id"> {
88- id: number;
99- email: string;
1010- }
66+ interface User extends DefaultUserSchema {}
117}