feat: add colorscheme to user in db (#987)

This commit is contained in:
Meier Lukas
2024-09-01 20:37:52 +02:00
committed by GitHub
parent 824ec8a9ca
commit b080e0de71
28 changed files with 2869 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
import { headers } from "next/headers";
import type { DefaultSession } from "@auth/core/types";
import type { GroupPermissionKey } from "@homarr/definitions";
import type { ColorScheme, GroupPermissionKey } from "@homarr/definitions";
import { createConfiguration } from "./configuration";
@@ -12,6 +12,7 @@ declare module "next-auth" {
user: {
id: string;
permissions: GroupPermissionKey[];
colorScheme: ColorScheme;
} & DefaultSession["user"];
}
}