Skip to content
Discussion options

You must be logged in to vote

Seems like a false alarm, it doesn't really make sense:

case "_log":
if (userOptions.logger) {
try {
const {
code = "CLIENT_ERROR",
level = "error",
message = "[]",
} = req.body
logger[level](code, ...JSON.parse(message))
} catch (error) {
// If logging itself failed...
logger.error("LOGGER_ERROR", error)
}
}
return res.end()

https://next-auth.js.org/configuration/options#logger

In short, that endpoint receives logs from the client and forwards them to your logging service, if you define one.

From what I can understand, the endpoint would j…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jacklimwenjie
Comment options

Answer selected by balazsorban44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants