diff --git a/lib/api-middlewares/with-authentication.ts b/lib/api-middlewares/with-authentication.ts index deb3737..e9021f1 100644 --- a/lib/api-middlewares/with-authentication.ts +++ b/lib/api-middlewares/with-authentication.ts @@ -1,5 +1,5 @@ import type { NextApiHandler, NextApiRequest, NextApiResponse } from "next" -import { unstable_getServerSession } from "next-auth" +import { unstable_getServerSession } from "next-auth/next" import { authOptions } from "@/lib/auth" diff --git a/lib/api-middlewares/with-current-user.ts b/lib/api-middlewares/with-current-user.ts index 1c68adb..4e8e56f 100644 --- a/lib/api-middlewares/with-current-user.ts +++ b/lib/api-middlewares/with-current-user.ts @@ -1,5 +1,5 @@ import type { NextApiHandler, NextApiRequest, NextApiResponse } from "next" -import { unstable_getServerSession } from "next-auth" +import { unstable_getServerSession } from "next-auth/next" import * as z from "zod" import { authOptions } from "@/lib/auth" diff --git a/lib/api-middlewares/with-post.ts b/lib/api-middlewares/with-post.ts index 2e81b2d..aa38500 100644 --- a/lib/api-middlewares/with-post.ts +++ b/lib/api-middlewares/with-post.ts @@ -1,5 +1,5 @@ import type { NextApiHandler, NextApiRequest, NextApiResponse } from "next" -import { unstable_getServerSession } from "next-auth" +import { unstable_getServerSession } from "next-auth/next" import * as z from "zod" import { authOptions } from "@/lib/auth" diff --git a/lib/session.ts b/lib/session.ts index f46f80e..542922d 100644 --- a/lib/session.ts +++ b/lib/session.ts @@ -1,4 +1,4 @@ -import { unstable_getServerSession } from "next-auth" +import { unstable_getServerSession } from "next-auth/next" import { authOptions } from "@/lib/auth" diff --git a/package.json b/package.json index fb820f3..3d37e2a 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "hasha": "^5.2.2", "lucide-react": "^0.92.0", "next": "^13.0.3-canary.0", - "next-auth": "^4.16.3", + "next-auth": "^4.16.4", "next-mdx-remote": "^4.1.0", "node-cache": "^5.1.2", "nodemailer": "^6.8.0", diff --git a/yarn.lock b/yarn.lock index a708836..3e33872 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2731,10 +2731,10 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -next-auth@^4.16.3: - version "4.16.3" - resolved "https://registry.yarnpkg.com/next-auth/-/next-auth-4.16.3.tgz#896ddeebb16c42899f916722be11acb99ec969fa" - integrity sha512-xDQHQJRpB/pjBDj53r4Br03jvhM1TI73J9OCX0afBTOHZEfpQ6ZrjsBFdSrdx6NeQSEMq6R/ZRny2Y6Nt/XqrA== +next-auth@^4.16.4: + version "4.16.4" + resolved "https://registry.yarnpkg.com/next-auth/-/next-auth-4.16.4.tgz#3ab796a0979ac05a6ebc1fbf343983ef5bc965c9" + integrity sha512-KXW578+ER1u5RcWLwCHMdb/RIBIO6JM8r6xlf9RIPSKzkvDcX9FHiZfJS2vOq/SurHXPJZc4J3OS4IDJpF74Dw== dependencies: "@babel/runtime" "^7.16.3" "@panva/hkdf" "^1.0.1"