Skip to content

Commit

Permalink
🐛 fix: fix import clerk AuthObject from public api (lobehub#3416)
Browse files Browse the repository at this point in the history
* fix: import `AuthObject` from public api

* Update package.json
  • Loading branch information
Zolyn authored Aug 6, 2024
1 parent 8958c80 commit af8960d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/middleware/auth/index.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/app/api/middleware/auth/utils.test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/middleware/auth/utils.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit af8960d

Please sign in to comment.