Make sure we log OAuth errors in the server console
infomiho opened this issue · comments
Mihovil Ilakovac commented
Sometimes users report seeing "An unknown error occurred while trying to log in with the OAuth provider." when things go wrong with the OAuth flow.
This message is sent when something unexpected happens and we don't want to be more specific than this when showing an error on the client:
But, this makes it hard to debug for us and for the users. When we redirect with the generic error message, we should also log with console.error
on the server.
Karan Krishnani commented
Would this be as simple as passing the unknown error to the callback as a string?