fix: cleanup auth logs

This commit is contained in:
Christel Westerberg
2024-06-28 13:54:22 +02:00
parent 6b39f2d990
commit 9a9b850657

62
auth.ts
View File

@@ -146,37 +146,37 @@ export const config = {
} }
}, },
}, },
events: { // events: {
async signIn() { // async signIn() {
console.log("#### SIGNIN EVENT ARGS ######") // console.log("#### SIGNIN EVENT ARGS ######")
console.log(arguments) // console.log(arguments)
console.log("#### END - SIGNIN EVENT ARGS ######") // console.log("#### END - SIGNIN EVENT ARGS ######")
}, // },
async signOut() { // async signOut() {
console.log("#### SIGNOUT EVENT ARGS ######") // console.log("#### SIGNOUT EVENT ARGS ######")
console.log(arguments) // console.log(arguments)
console.log("#### END - SIGNOUT EVENT ARGS ######") // console.log("#### END - SIGNOUT EVENT ARGS ######")
}, // },
async session() { // async session() {
console.log("#### SESSION EVENT ARGS ######") // console.log("#### SESSION EVENT ARGS ######")
console.log(arguments) // console.log(arguments)
console.log("#### END - SESSION EVENT ARGS ######") // console.log("#### END - SESSION EVENT ARGS ######")
}, // },
}, // },
logger: { // logger: {
error(code, ...message) { // error(code, ...message) {
console.info("ERROR LOGGER") // console.info("ERROR LOGGER")
console.error(code, message) // console.error(code, message)
}, // },
warn(code, ...message) { // warn(code, ...message) {
console.info("WARN LOGGER") // console.info("WARN LOGGER")
console.warn(code, message) // console.warn(code, message)
}, // },
debug(code, ...message) { // debug(code, ...message) {
console.info("DEBUG LOGGER") // console.info("DEBUG LOGGER")
console.debug(code, message) // console.debug(code, message)
}, // },
}, // },
} satisfies NextAuthConfig } satisfies NextAuthConfig
export const { export const {