Prerequisites
After approved onboarding, select the existing project, save the key once after reauthentication, and prepare the private SDK build locally. No real customer data in tests.
PRISMATECH SHIELD / Developers
A synthetic example of the existing SDK contract.
After approved onboarding, select the existing project, save the key once after reauthentication, and prepare the private SDK build locally. No real customer data in tests.
BLOCK denies the operation. REQUIRE_2FA requires another factor. Technical failure or exhausted quota keeps the operation denied.
import { ShieldClient } from "@prismatech/shield-sdk";
const shield = new ShieldClient({
baseUrl: process.env.SHIELD_API_URL!,
apiKey: process.env.SHIELD_API_KEY!,
failureMode: "fail-closed"
});
const result = await shield.evaluateLogin({
subject: { id: "synthetic-user" },
idempotencyKey: "synthetic-login-0001"
});
if (result.degraded || result.decision !== "ALLOW") {
throw new Error("ACCESS_REQUIRES_REVIEW");
}Public registration and email verification are not yet approved. Existing customers use the customer portal. No accounts or keys are created here.