Noel
03/31/2026, 11:58 AMDevRev
03/31/2026, 11:59 AMerrorTransformer in your React SDK:
const errorTransformer = useCallback(
(error: { text: string; type: string }) => {
// Send error to Sentry here
Sentry.captureException(new Error(error.text), {
tags: { errorType: error.type, source: 'descope-flow' }
});
return error.text; // Return original or custom message
},
[]
);
<Descope
flowId="my-flow-id"
errorTransformer={errorTransformer}
/>
Audit Trail Integration
For comprehensive monitoring, you can also stream audit events (including login failures) to external systems using audit trail streaming connectors.
The connector approach within flows gives you the most control over what error data gets sent and when, allowing you to maintain full observability of authentication errors.Noel
03/31/2026, 12:02 PMMeir Wahnon
03/31/2026, 12:11 PM