fix: cleanup auth logs
This commit is contained in:
62
auth.ts
62
auth.ts
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user