diff --git a/apps/nextjs/src/components/user-avatar-menu.tsx b/apps/nextjs/src/components/user-avatar-menu.tsx index 0cd5e0726..a9f47d9ab 100644 --- a/apps/nextjs/src/components/user-avatar-menu.tsx +++ b/apps/nextjs/src/components/user-avatar-menu.tsx @@ -72,7 +72,7 @@ export const UserAvatarMenu = ({ children }: UserAvatarMenuProps) => { <> } > {t("preferences")} diff --git a/packages/auth/index.ts b/packages/auth/index.ts index eed6a80b9..b8cbc55a1 100644 --- a/packages/auth/index.ts +++ b/packages/auth/index.ts @@ -1,12 +1,12 @@ -import type { DefaultSession } from "@auth/core/types"; +import type { DefaultSession } from "next-auth"; import type { GroupPermissionKey } from "@homarr/definitions"; import { createConfiguration } from "./configuration"; -export type { Session } from "@auth/core/types"; +export type { Session } from "next-auth"; -declare module "@auth/core/types" { +declare module "next-auth" { interface Session { user: { id: string; diff --git a/packages/auth/package.json b/packages/auth/package.json index 2b52639c6..b8b4794a3 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@homarr/db": "workspace:^0.1.0", - "@auth/core": "^0.31.0", + "@auth/core": "^0.32.0", "@auth/drizzle-adapter": "^1.2.0", "@t3-oss/env-nextjs": "^0.10.1", "bcrypt": "^5.1.1", diff --git a/packages/auth/permissions/board-permissions.ts b/packages/auth/permissions/board-permissions.ts index a3adbe8f6..35bac53ab 100644 --- a/packages/auth/permissions/board-permissions.ts +++ b/packages/auth/permissions/board-permissions.ts @@ -1,4 +1,4 @@ -import type { Session } from "@auth/core/types"; +import type { Session } from "next-auth"; export type BoardPermissionsProps = ( | { diff --git a/packages/auth/permissions/test/board-permissions.spec.ts b/packages/auth/permissions/test/board-permissions.spec.ts index 24b180836..05b98a039 100644 --- a/packages/auth/permissions/test/board-permissions.spec.ts +++ b/packages/auth/permissions/test/board-permissions.spec.ts @@ -1,4 +1,4 @@ -import type { Session } from "@auth/core/types"; +import type { Session } from "next-auth"; import { describe, expect, test } from "vitest"; import { getPermissionsWithChildren } from "@homarr/definitions"; diff --git a/packages/auth/session.ts b/packages/auth/session.ts index 3e893db04..02ef573df 100644 --- a/packages/auth/session.ts +++ b/packages/auth/session.ts @@ -1,5 +1,5 @@ import { randomUUID } from "crypto"; -import type { Session } from "@auth/core/types"; +import type { Session } from "next-auth"; import type { Database } from "@homarr/db"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17c714388..7466bc6b2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -477,8 +477,8 @@ importers: packages/auth: dependencies: '@auth/core': - specifier: ^0.31.0 - version: 0.31.0 + specifier: ^0.32.0 + version: 0.32.0 '@auth/drizzle-adapter': specifier: ^1.2.0 version: 1.2.0