chore: add logs to debug auth

This commit is contained in:
Christel Westerberg
2024-06-25 15:19:05 +02:00
parent 6f15afd8f9
commit eb895e8a27

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 {