Skip to content

Commit

Permalink
fix(deps): update dependency @auth/core to ^0.32.0 (#603)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
homarr-renovate[bot] and Meierschlumpf authored Jun 2, 2024
1 parent 869efbc commit dc3b007
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/src/components/user-avatar-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")}
Expand Down
6 changes: 3 additions & 3 deletions packages/auth/index.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/permissions/board-permissions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Session } from "@auth/core/types";
import type { Session } from "next-auth";

export type BoardPermissionsProps = (
| {
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/permissions/test/board-permissions.spec.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/session.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc3b007

Please sign in to comment.