Home/Features/Test Mode
Zero SMS Cost • Instant Sandbox

Mock Test Mode & Sandbox.

Build and test entire authentication flows in local development and automated CI/CD pipelines without burning SMS credits or waiting for network delivery.

Dashboard OTP inbox

Test keys (pk_test_*) generate a random 6-digit code. Copy it from the app dashboard Sandbox and verify with the same API you use in production.

₹0.00 Carrier Cost

Test requests bypass external cellular networks completely. Run tens of thousands of automated tests for free.

Identical Schemas

Test responses return the identical JSON payload format and HTTP status codes as live production keys.

auth.test.ts (CI/CD Pipeline)
Playwright / Jest Example
123456789101112131415161718192021222324// Example: Jest / Playwright test suite using FlashAuth Test Modetest("user successfully logs in via phone OTP", async () => {  const TEST_KEY = "pk_test_sandbox_xyz123";  const phone = "+155523xxxxx";   // 1. Dispatch OTP in Test Mode (Zero SMS charges)  const sendRes = await fetch(process.env.FLASHAUTH_API_URL + "/v1/otp/send", {    method: "POST",    headers: { "x-api-key": TEST_KEY, "Content-Type": "application/json" },    body: JSON.stringify({ phone }),  });  expect(sendRes.status).toBe(200);   const code = "482193"; // copied from the dashboard Test OTP inbox   // 2. Verify with the generated code — not a fixed bypass  const verifyRes = await fetch(process.env.FLASHAUTH_API_URL + "/v1/otp/verify", {    method: "POST",    headers: { "x-api-key": TEST_KEY, "Content-Type": "application/json" },    body: JSON.stringify({ phone, code }),  });  const data = await verifyRes.json();  expect(data.verified).toBe(true);});

Explore More Features

Learn how FlashAuth delivers turnkey sessions and automated abuse protection.