Performance · 5 min read

Incremental Authentication:
Why Verify What Hasn't Changed?

H33's incremental authentication only verifies what's changed, delivering dramatically faster re-authentication for context updates.

1.2M/s
Auth/sec
~50µs
Per Auth
96
CPU Cores
Graviton4
Platform

Traditional authentication treats every request the same: full verification, every time. But if a user's device, location, and session context haven't changed, why re-verify everything?

H33's incremental authentication takes a smarter approach. When only a small portion of the authentication context changes, we only verify the delta—delivering 4x+ faster re-authentication for typical updates.

The Delta Principle

When 5% of context changes, verify 5% of the authentication. Full security with a fraction of the compute.

How It Works

H33 tracks authentication context as a set of claims, each with its own verification status:

When a request arrives, we compute the delta between current and previous context. Only changed claims require re-verification.

// Initial authentication - full verification
const initial = await h33.auth.fullStack({
  userId: 'user_123',
  context: fullContext
});

// Context update - only IP changed
const updated = await h33.auth.incrementalUpdate({
  sessionId: initial.sessionId,
  delta: {
    ipAddress: newIpAddress  // Only this changed
  }
});
// Verifies just the location claim - much faster

Use Cases

Mobile users moving between networks: When a user switches from WiFi to cellular, only the network context changes. Incremental auth verifies the new IP without re-checking biometrics.

Permission escalation: User requests access to a sensitive resource. Incremental auth adds the permission claim without re-authenticating identity.

Session extension: User is still active but session is aging. Refresh temporal claims without full re-verification.

Security Model

Incremental authentication maintains full security through:

When Full Auth is Triggered

Certain conditions always require full authentication:

Implementation

// Configure incremental auth behavior
const authConfig = {
  incrementalAuth: {
    enabled: true,
    maxDeltaAge: '15m',      // How old can unchanged claims be
    riskThreshold: 0.6,       // Trigger full auth above this
    sensitiveOperations: ['transfer', 'delete', 'export']
  }
};

// The SDK handles delta computation automatically
app.use(h33.middleware(authConfig));

// In your routes, auth is already incremental
app.post('/api/data', async (req, res) => {
  // req.auth contains current claims
  // Incremental updates happened automatically
});

The Performance Impact

For applications where user context is relatively stable between requests, incremental authentication delivers significant improvements. Most requests see only minor context changes, meaning most authentications can use the fast path.

Combined with session resume and proof caching, H33's intelligent authentication system minimizes redundant verification while maintaining complete security.

Enable Incremental Authentication

Smarter authentication that only verifies what's changed. Get started with 1,000 free auths.

Get Free API Key

Build With Post-Quantum Security

Enterprise-grade FHE, ZKP, and post-quantum cryptography. One API call. Sub-millisecond latency.

Get Free API Key → Read the Docs
Free tier · 10,000 API calls/month · No credit card required
Verify It Yourself