Feature request: Improve logging
Prerequisites
- [X] I have searched the repository’s issues, Kinde community and public roadmap to ensure my feature request isn’t a duplicate
- [X] I have read the contributing guidelines
- [X] I agree to the terms within the code of conduct
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
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 What issue are you seeing when you try hosted?