Guides
Demo

Error Handling

When ToughClicks experiences an internal error, we will immediately trigger a tc-internal-error event. To listen to this event, you can follow the structure set out in Events & Listeners.

TC.on("tc-internal-error", myToughClicksErrorHandler);

Handling Errors

How you handle a ToughClicks internal error depends on your use case. For some of our customers, they choose to fail-open and allow the user to proceed. This is because they know the next time the user signs in, they will check the user's compliance and run the user through their Force Reacceptance flow. However, for other clients, they choose to fail-closed and ask the user to return later.