Skip to main content

Graceful Degradation in Identity Verification (1)

Learn how to build resilient identity verification systems with graceful degradation strategies. Minimize user friction and maintain functionality even during API failures or service disruptions.

Graceful Degradation in Identity Verification (1)

Contents

In this guide

Jump to the part you need.

Key Takeaways

Graceful Degradation DefinedDesigning an identity verification system to maintain core functionality even when specific components fail, ensuring a positive user experience.

Fallback Mechanisms are CrucialImplementing alternative verification methods (e.g., SMS OTP as a fallback to biometric authentication) to handle service outages or user device limitations.

Monitoring & Alerting are Key Proactive monitoring of key verification services and setting up alerts for failures allows for rapid response and mitigation.

Prioritize Core Functionality Focus on ensuring the most critical aspects of verification continue to function during degraded states, accepting minimal risk rather than complete blockage.

The Importance of Resilience in Identity Verification

In today's digital landscape, a seamless user experience is paramount. Identity verification is often the first hurdle a user encounters, and friction at this stage can lead to significant drop-off rates. However, relying on a single, complex identity verification flow is a risky proposition. API outages, third-party service disruptions, and unexpected errors can all bring the process to a grinding halt. This is where graceful degradation comes into play. It's a design philosophy focused on maintaining essential functionality, even when parts of the system are unavailable. For identity verification, this translates to providing alternative verification methods or reducing the stringency of checks when primary methods fail. Without it, you risk losing legitimate users and opening the door to increased fraud due to frustrated users seeking workarounds.

Designing for Failure: Fallback Mechanisms

The core of graceful degradation lies in implementing effective fallback mechanisms. These are alternative paths that the system can take when a primary verification method is unavailable. Here are some common strategies:

  • Multi-Factor Authentication (MFA) Fallback: If biometric authentication fails (due to device limitations or user error), fall back to SMS OTP or email verification.
  • Document Verification Fallback: If automated document verification encounters an error, route the session to manual review.
  • Data Source Redundancy: Utilize multiple AML screening providers. If one provider is unavailable, seamlessly switch to another.
  • Risk-Based Authentication: Reduce the verification requirements for low-risk users or transactions.
  • Progressive Verification: Start with a minimal verification step and progressively increase requirements based on risk signals.

Consider the following code snippet (pseudocode) illustrating a fallback scenario:


function verifyUser(userId) {
  try {
    // Attempt biometric authentication
    biometricVerificationResult = performBiometricVerification(userId);
    if (biometricVerificationResult.success) {
      return biometricVerificationResult;
    }
  } catch (error) {
    console.error("Biometric verification failed:", error);
  }

// Fallback to SMS OTP
try {
smsVerificationResult = performSMSVerification(userId);
if (smsVerificationResult.success) {
return smsVerificationResult;
}
} catch (error) {
console.error("SMS verification failed:", error);
// Log the failure and potentially escalate to manual review
}

// If all else fails, return an error
return { success: false, message: "Verification failed" };
}

API Failure Handling & Retry Logic

External APIs are a common point of failure in identity verification workflows. Implementing robust API failure handling and retry logic is critical. Avoid synchronous calls where possible; use asynchronous processing to prevent blocking the user experience. When retrying API calls, use exponential backoff to avoid overwhelming the service. Also, implement circuit breaker patterns to prevent repeated calls to a failing service.

Here's an example of exponential backoff with a maximum retry count:


async function callApiWithRetry(apiCall, maxRetries = 3, delay = 1000) {
  for (let i = 0; i < maxRetries; i++) {
    try {
      return await apiCall();
    } catch (error) {
      console.error("API call failed (attempt " + (i + 1) + "):", error);
      if (i === maxRetries - 1) {
        throw error; // Re-throw the error if it's the last attempt
      }
      await new Promise(resolve => setTimeout(resolve, delay * Math.pow(2, i)));
    }
  }
}

Monitoring, Alerting, and Observability

Proactive monitoring is essential for detecting and responding to failures promptly. Monitor key metrics like API response times, error rates, and verification success rates. Set up alerts to notify your team when these metrics exceed predefined thresholds. Utilize observability tools (logging, tracing, metrics) to gain deeper insights into system behavior and diagnose issues quickly. A well-defined monitoring strategy allows you to identify and address potential problems before they impact users.

How Didit Helps

Didit is designed with resilience in mind. Our full-stack identity platform offers:

  • Modular Architecture: Each verification component (ID check, liveness, AML) is independent, minimizing the impact of failures.
  • Workflow Orchestration: Build custom workflows with conditional logic and fallback mechanisms using our visual workflow builder.
  • Multiple Data Sources: Redundant AML screening providers ensure continuous compliance even during outages.
  • Robust API: Designed for reliability with comprehensive error handling and rate limiting.
  • Real-time Monitoring: Detailed analytics and alerts within the Didit Console provide visibility into system performance.

Ready to Get Started?

Don't let API failures and service disruptions compromise your user experience. Build resilient identity verification systems with graceful degradation.

Explore Didit's platform today!

Request a Demo View Documentation

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.