Nitzan Kletter
11/02/2025, 9:12 AMSignUpOrInFlow widget from the NextJS SDK, I'm attaching data from my observability dashboards from the last 1 week in production.
Two other anecdotes which may be important:
• There seems to be a high correlation between these errors and Mobile usage (and that's also something that was reported by our users)
• I'm passing onError handler prop to the widget component, however it seems the widget mostly ignores this option and throws/logs errors outside of this onError context. At least from my perspective, I would expect that if I pass onError prop, anything error-related will pass by it and won't necessarily just be logged to console or thrown. Attaching an image to show how we use it and the only thing that came up this week in the custom issue recorder. Are we using it wrong / is there anything we're missing?
This is a pretty high severity issue from our side because we're dependent on this flow and we would rather stay with the widget and not implement our own sign-in page against the sdk api for now.
I would also gladly help with debugging if it helps and can share other data that could be relevant to you.
Thanks in advance!Reuven Zabirov
11/02/2025, 9:36 AMNitzan Kletter
11/02/2025, 9:38 AMconsole.error, which I can say for sure are descope related because we have a lint rule against using console.error. The second are of datadog type "source", which are uncaught javascript exceptionsReuven Zabirov
11/02/2025, 9:51 AMonError hook is there to catch the errors that happen on the flow itself and after it loads succesfully.
So AFAIK we cannot add these to be catched with the onError
any reason why this is a blocker for you?Nitzan Kletter
11/02/2025, 10:01 AMReuven Zabirov
11/02/2025, 10:05 AM