From 9a9b8506571670ee1ab35742d03334b51f6c3b93 Mon Sep 17 00:00:00 2001 From: Christel Westerberg Date: Fri, 28 Jun 2024 13:54:22 +0200 Subject: [PATCH] fix: cleanup auth logs --- auth.ts | 62 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/auth.ts b/auth.ts index 8bb7e64f5..b634a3c4b 100644 --- a/auth.ts +++ b/auth.ts @@ -146,37 +146,37 @@ export const config = { } }, }, - events: { - async signIn() { - console.log("#### SIGNIN EVENT ARGS ######") - console.log(arguments) - console.log("#### END - SIGNIN EVENT ARGS ######") - }, - async signOut() { - console.log("#### SIGNOUT EVENT ARGS ######") - console.log(arguments) - console.log("#### END - SIGNOUT EVENT ARGS ######") - }, - async session() { - console.log("#### SESSION EVENT ARGS ######") - console.log(arguments) - console.log("#### END - SESSION EVENT ARGS ######") - }, - }, - logger: { - error(code, ...message) { - console.info("ERROR LOGGER") - console.error(code, message) - }, - warn(code, ...message) { - console.info("WARN LOGGER") - console.warn(code, message) - }, - debug(code, ...message) { - console.info("DEBUG LOGGER") - console.debug(code, message) - }, - }, + // events: { + // async signIn() { + // console.log("#### SIGNIN EVENT ARGS ######") + // console.log(arguments) + // console.log("#### END - SIGNIN EVENT ARGS ######") + // }, + // async signOut() { + // console.log("#### SIGNOUT EVENT ARGS ######") + // console.log(arguments) + // console.log("#### END - SIGNOUT EVENT ARGS ######") + // }, + // async session() { + // console.log("#### SESSION EVENT ARGS ######") + // console.log(arguments) + // console.log("#### END - SESSION EVENT ARGS ######") + // }, + // }, + // logger: { + // error(code, ...message) { + // console.info("ERROR LOGGER") + // console.error(code, message) + // }, + // warn(code, ...message) { + // console.info("WARN LOGGER") + // console.warn(code, message) + // }, + // debug(code, ...message) { + // console.info("DEBUG LOGGER") + // console.debug(code, message) + // }, + // }, } satisfies NextAuthConfig export const {