Skip to content

Commit

Permalink
oneai
Browse files Browse the repository at this point in the history
  • Loading branch information
hoopan007 committed Nov 8, 2024
1 parent 76fabd8 commit dfa7232
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libs/next-auth/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/libs/next-auth/edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ import authConfig from './auth.config';
* signOut();
* ```
*/
// @ts-expect-error Provider type mismatch but functionality works
export default NextAuth(authConfig);
1 change: 0 additions & 1 deletion src/libs/next-auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dfa7232

Please sign in to comment.