diff --git a/packages/plugins/plugins/plugin-next-auth/src/auth/callbacks.js b/packages/plugins/plugins/plugin-next-auth/src/auth/callbacks.js deleted file mode 100644 index 159713f5a..000000000 --- a/packages/plugins/plugins/plugin-next-auth/src/auth/callbacks.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - Copyright 2020-2022 Lowdefy, Inc - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -export { default as SessionCallback } from './callbacks/LowdefySessionAuthCallback.js'; diff --git a/packages/plugins/plugins/plugin-next-auth/src/types.js b/packages/plugins/plugins/plugin-next-auth/src/types.js index a17ccd7c1..d283ccb44 100644 --- a/packages/plugins/plugins/plugin-next-auth/src/types.js +++ b/packages/plugins/plugins/plugin-next-auth/src/types.js @@ -16,12 +16,10 @@ /* eslint-disable import/namespace */ -import * as callbacks from './auth/callbacks.js'; import * as providers from './auth/providers.js'; export default { auth: { - callbacks: Object.keys(callbacks), providers: Object.keys(providers), }, }; diff --git a/packages/server/pages/api/request/[pageId]/[requestId].js b/packages/server/pages/api/request/[pageId]/[requestId].js index 648177e0f..dedfd8c82 100644 --- a/packages/server/pages/api/request/[pageId]/[requestId].js +++ b/packages/server/pages/api/request/[pageId]/[requestId].js @@ -29,7 +29,8 @@ export default async function handler(req, res) { const apiContext = await createApiContext({ buildDirectory: './build', connections, - logger: console, + // logger: console, + logger: { debug: () => {} }, operators, secrets: getSecretsFromEnv(), session,