fix(deps): update dependency @auth/core to ^0.32.0 (#603)

* fix(deps): update dependency @auth/core to ^0.32.0

* fix(deps): update dependency @auth/core to ^0.32.0

* fix: type issues with next-auth types

---------

Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
homarr-renovate[bot]
2024-06-02 11:01:10 +02:00
committed by GitHub
parent 869efbc638
commit dc3b00736e
7 changed files with 10 additions and 10 deletions

View File

@@ -72,7 +72,7 @@ export const UserAvatarMenu = ({ children }: UserAvatarMenuProps) => {
<>
<Menu.Item
component={Link}
href={`/manage/users/${session.data?.user.id}`}
href={`/manage/users/${session.data?.user?.id}`}
leftSection={<IconSettings size="1rem" />}
>
{t("preferences")}

View File

@@ -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;

View File

@@ -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",

View File

@@ -1,4 +1,4 @@
import type { Session } from "@auth/core/types";
import type { Session } from "next-auth";
export type BoardPermissionsProps = (
| {

View File

@@ -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";

View File

@@ -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";

4
pnpm-lock.yaml generated
View File

@@ -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