Closed maciekpaprocki closed 1 year ago
Hi @maciekpaprocki - thanks for raising this
Take a look at https://github.com/auth0/express-openid-connect/issues/145#issuecomment-707024770 and https://github.com/auth0/express-openid-connect/issues/267#issuecomment-902715653 for an explanation of the error and some tips on debugging.
How to catch it? Seems check if for message and BadRequestError? I understand BadRequestError can happen in a lot more cases than only this. How to deal with it on UX side.
BadRequestError just means that the the client is making a bad request and the server can't log the user in. All you can do is prompt the user to try to login again (and also debug the underlying issue using the links I shared)
Closing due to inactivity
Checklist
Description
Got quite a few of those errors happening in production. Weirdly, when i try to login every method works fine as well as I've seen bunch of people logging properly, so i think it's only affecting fraction of users.
i've seen https://github.com/auth0/express-openid-connect/issues/467 but that issue seems to be for very specific case, where I see small chance of my users actually ending up in this scenario. Not in those numbers ( happened 3-4 times for 12 registrations )
Is it a bug? Any idea why is it happening? ( what user actions cause it ) How to deal with it?
Reproduction
Pretty standard auth0 express backend app.
Additional context
I can only find it in logs, I didn't experience it happening while I was testing so reproducing is pretty much game of numbers, or some particular emails or something like that.
express-openid-connect version
2.16
Express version
5
Node.js version
18