ZKAuth and its SDKs are currently in active development. APIs and behavior may evolve as we ship improvements. Use this documentation as guidance for early access and always verify against the latest release notes.

Preview / Early Access
Complete Developer Documentation

Build Secure Apps withZero-Knowledge Auth

Comprehensive guides, SDKs, and examples to integrate ZKAuth into your applications. From quick start to enterprise deployment.

Why Choose ZKAuth

Built for developers who demand security without compromise

Zero-Knowledge Security

Tenant-bound proofs avoid sending password secrets to the server

Lightning Fast

Optimized local proof-plus-controller login benchmark: 446.878 ms mean over 1000 runs

Developer First

HTTP-first integration today, with framework helper examples you can adapt

Enterprise Ready

Audit logs and standards mappings are provided without claiming certification

Advanced Analytics

Concrete login threat checks, API logs, and security telemetry

Multi-Platform

Web, mobile, and desktop support with consistent APIs

Get Started in 5 Minutes

Integrate ZKAuth into your application with our simple SDK

Installation

bash
npm install your-zkauth-http-client   # or   yarn add your-zkauth-http-client   # or   pnpm add your-zkauth-http-client

Basic Usage

javascript
import { ZKAuthSDK } from 'your-zkauth-http-client';

// Initialize ZKAuth
const zkauth = new ZKAuthSDK({
  apiKey: 'zka_...',
  baseUrl: 'https://zkp-engine-main-1.vercel.app'
});

// Register a new user
await zkauth.register({
  email: 'user@example.com',
  password: 'password',
  deviceInfo: { deviceName: 'Chrome on Mac', deviceType: 'desktop' }
});

// Authenticate with ZK proof
const session = await zkauth.login({
  email: 'user@example.com',
  password: 'password',
  deviceInfo: { deviceName: 'Chrome on Mac', deviceType: 'desktop' }
});

console.log('Authentication successful!', session.data?.user);

Environment Setup

bash
# Create a .env file
ZKAUTH_API_KEY=zka_live_your_api_key_here
ZKAUTH_BASE_URL=https://zkp-engine-main-1.vercel.app

# For development
ZKAUTH_API_KEY=zka_test_your_test_key_here

Framework Integration

React Integration

jsx
import { useZKAuth } from './zkauth-react-helper';

function App() {
  const { user, signIn, signOut, loading } = useZKAuth();

  const handleLogin = async () => {
    const result = await signIn('user@example.com', 'password');
    if (result.success) {
      console.log('Logged in successfully!');
    }
  };

  return (
    <div>
      {user ? (
        <div>
          <p>Welcome, {user.email}!</p>
          <button onClick={signOut}>Sign Out</button>
        </div>
      ) : (
        <button onClick={handleLogin}>Sign In</button>
      )}
    </div>
  );
}

Python Integration

python
from zkauth import ZKAuth

# Initialize client
client = ZKAuth(api_key="zka_...")

# Register user
user = await client.sign_up("user@example.com", "password")

# Authenticate
session = await client.sign_in("user@example.com", "password")

print(f"Authenticated: {session.success}")

Explore Our Documentation

Everything you need to build secure applications with ZKAuth

Multi-Platform SDK Support

Choose your preferred language and framework

javascript icon

JavaScript

Node.js & Browser

python icon

Python

Django & FastAPI

go icon

Go

High Performance

rust icon

Rust

Memory Safe

react icon

React

React hooks and components

vue icon

Vue.js

Vue 3 composition API

Ready to Build the Future?

Join thousands of developers building secure, privacy-first applications with ZKAuth.