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

Mathematically impossible to breach user credentials with cryptographic proofs

Lightning Fast

Sub-second authentication with optimized ZK proof generation and verification

Developer First

Simple SDKs for React, Vue, Python, Go, and more with excellent DX

Enterprise Ready

SOC2, HIPAA, GDPR compliant with comprehensive audit trails

Advanced Analytics

Real-time threat detection and behavioral analysis with ML

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 @zkauth/sdk # or yarn add @zkauth/sdk # or pnpm add @zkauth/sdk

Basic Usage

javascript
import { ZKAuth } from '@zkauth/sdk';

// Initialize ZKAuth
const zkauth = new ZKAuth({
  apiKey: 'zka_...',
  baseUrl: 'https://api.zkauth.com'
});

// Register a new user
const user = await zkauth.signUp('user@example.com', 'password');

// Authenticate with ZK proof
const session = await zkauth.signIn('user@example.com', 'password');

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

Environment Setup

bash
# Create a .env file
ZKAUTH_API_KEY=zka_live_your_api_key_here
ZKAUTH_BASE_URL=https://api.zkauth.com

# For development
ZKAUTH_API_KEY=zka_test_your_test_key_here

Framework Integration

React Integration

jsx
import { useZKAuth } from '@zkauth/react';

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.