kinde-node-express icon indicating copy to clipboard operation
kinde-node-express copied to clipboard

Feature request: Improve logging

Open EGE-AI opened this issue 1 year ago • 2 comments

Prerequisites

What is the problem you’re trying to solve?

Lack of logging as well as control over logging

What solution would you like to see?

More logs in try-catch blocks and maybe a flag that controls log printing to avoid uncontrollable spam from the SDK

Additional information

In src.auth.kindeAuthRouter.handleCallback(), it's difficult to know what error caused the unauthorization redirect, so it would be nice if there was a console.error(error) or something in the catch block.

Also, if the configuration could take in a verbose flag for displaying errors, that would be nice.

I would also look deeper into the typescript SDK and do the same there

EGE-AI avatar Oct 31 '24 19:10 EGE-AI

Did you ever manage to understand how to catch logs for this? I am having an issue where everything is working locally, but as soon as I host or either vercel or fly.io I cannot get the authentication to work. I am unable to understand where to capture logs to understand where this is going wrong.

mashdot avatar Dec 28 '24 20:12 mashdot

@mashdot What issue are you seeing when you try hosted?

DanielRivers avatar Jan 09 '25 20:01 DanielRivers