diff --git a/src/libs/next-auth/auth.config.ts b/src/libs/next-auth/auth.config.ts index d76bf0a64a43..afb11a8ef462 100644 --- a/src/libs/next-auth/auth.config.ts +++ b/src/libs/next-auth/auth.config.ts @@ -40,7 +40,6 @@ export default { return session; }, }, - // @ts-expect-error Provider type mismatch but functionality works providers: initSSOProviders(), redirectProxyUrl: process.env.APP_URL ? urlJoin(process.env.APP_URL, '/api/auth') : undefined, secret: authEnv.NEXT_AUTH_SECRET, diff --git a/src/libs/next-auth/edge.ts b/src/libs/next-auth/edge.ts index 3d7d1d7d6a69..4f20532d9741 100644 --- a/src/libs/next-auth/edge.ts +++ b/src/libs/next-auth/edge.ts @@ -23,5 +23,4 @@ import authConfig from './auth.config'; * signOut(); * ``` */ -// @ts-expect-error Provider type mismatch but functionality works export default NextAuth(authConfig); diff --git a/src/libs/next-auth/index.ts b/src/libs/next-auth/index.ts index 6f617aaf1657..807eb61af221 100644 --- a/src/libs/next-auth/index.ts +++ b/src/libs/next-auth/index.ts @@ -24,7 +24,6 @@ const { NEXT_PUBLIC_ENABLED_SERVER_SERVICE } = getServerDBConfig(); * The difference and usage of the two different NextAuth modules is can be * ref to: https://github.com/lobehub/lobe-chat/pull/2935 */ -// @ts-expect-error Provider type mismatch but functionality works export default NextAuth({ ...config, adapter: NEXT_PUBLIC_ENABLED_SERVER_SERVICE ? LobeNextAuthDbAdapter(serverDB) : undefined,