From af8960d537c62e6bbbf1aafef69f073f05a148e2 Mon Sep 17 00:00:00 2001 From: Zolyn Date: Wed, 7 Aug 2024 02:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=90=9B=20fix:=20fix=20import=20clerk?= =?UTF-8?q?=20`AuthObject`=20from=20public=20api=20(#3416)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: import `AuthObject` from public api * Update package.json --- package.json | 4 ++-- src/app/api/middleware/auth/index.ts | 2 +- src/app/api/middleware/auth/utils.test.ts | 2 +- src/app/api/middleware/auth/utils.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a8cc1b134daf..567faee043f0 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "@azure/openai": "1.0.0-beta.12", "@cfworker/json-schema": "^1.12.8", "@clerk/localizations": "2.0.0", - "@clerk/nextjs": "^5.2.6", + "@clerk/nextjs": "^5.2.14", "@clerk/themes": "^2.1.10", "@google/generative-ai": "^0.16.0", "@icons-pack/react-simple-icons": "^9.6.0", @@ -163,7 +163,7 @@ "numeral": "^2.0.6", "nuqs": "^1.17.4", "ollama": "^0.5.2", - "openai": "^4.52.3", + "openai": "~4.54.0", "partial-json": "^0.1.7", "pg": "^8.12.0", "pino": "^9.2.0", diff --git a/src/app/api/middleware/auth/index.ts b/src/app/api/middleware/auth/index.ts index ab9ac7f2162a..c0875bb1c17d 100644 --- a/src/app/api/middleware/auth/index.ts +++ b/src/app/api/middleware/auth/index.ts @@ -1,4 +1,4 @@ -import { AuthObject } from '@clerk/backend/internal'; +import { AuthObject } from '@clerk/backend'; import { getAuth } from '@clerk/nextjs/server'; import { NextRequest } from 'next/server'; diff --git a/src/app/api/middleware/auth/utils.test.ts b/src/app/api/middleware/auth/utils.test.ts index ed1b0df30322..e3aa504fba47 100644 --- a/src/app/api/middleware/auth/utils.test.ts +++ b/src/app/api/middleware/auth/utils.test.ts @@ -1,4 +1,4 @@ -import { type AuthObject } from '@clerk/backend/internal'; +import { type AuthObject } from '@clerk/backend'; import { beforeEach, describe, expect, it, vi } from 'vitest'; import { getAppConfig } from '@/config/app'; diff --git a/src/app/api/middleware/auth/utils.ts b/src/app/api/middleware/auth/utils.ts index 3888d997a307..8511270b7880 100644 --- a/src/app/api/middleware/auth/utils.ts +++ b/src/app/api/middleware/auth/utils.ts @@ -1,4 +1,4 @@ -import { type AuthObject } from '@clerk/backend/internal'; +import { type AuthObject } from '@clerk/backend'; import { importJWK, jwtVerify } from 'jose'; import { getAppConfig } from '@/config/app';