# Hawcx Authentication SDK Documentation > Hawcx is a passwordless authentication platform. These docs help you integrate Hawcx into web and mobile apps. The auth flow is server-driven: the backend tells the frontend what step to render next. > **For LLMs**: A complete reference with all API signatures, code examples, and integration patterns inline is available at [/llms-full.txt](/llms-full.txt). Use that file if you need to generate working integration code without following links. ## Important: Base URL Configuration The Hawcx API base URL is environment-specific. There is no universal default URL. To find your Base URL and Config ID: open the Hawcx Admin Console at https://app.hawcx.com, go to Project Settings, and copy both values shown there. When writing integration code, always use the Base URL from the Admin Console. Never hardcode a default. ## Core Concepts - [What is Hawcx?](/docs/v1/core-concepts/what-is-hawcx): Device-bound, zero-knowledge authentication platform. No passwords, no passkeys. Ephemeral key material per session. Your server never sees or stores credentials. - [How It Works](/docs/v1/core-concepts/how-it-works): End-to-end architecture — system layers (device, SDK, backend, cloud), full auth sequence with PKCE, device-bound proof generation, and security properties at each step. - [Device-Bound Authentication](/docs/v1/core-concepts/device-bound-authentication): Credentials are physically inseparable from the device. Non-exportable, non-syncable, non-transferable. Cloud account compromise doesn't affect auth. - [Zero-Knowledge Proofs](/docs/v1/core-concepts/zero-knowledge-proofs): Server receives a proof, never the secret. A complete database dump reveals zero usable credentials. No password hashing, no salt management. - [Session Security & Replay Prevention](/docs/v1/core-concepts/session-security): Every proof is single-use, challenge-bound, and unreplayable. Intercepted traffic is operationally worthless. - [Cryptographic Agility](/docs/v1/core-concepts/cryptographic-agility): Algorithm upgrades happen transparently — no user re-enrollment, no migration scripts, no downtime. Post-quantum ready. - [Comparing Authentication Models](/docs/v1/core-concepts/comparing-authentication-models): Side-by-side comparison of passwords vs passkeys vs Hawcx across phishing, breaches, cloud sync, quantum threat, developer effort, and user friction. - [Why Passwords & Passkeys Fall Short](/docs/v1/core-concepts/why-passwords-passkeys-fall-short): 80% of breaches involve stolen credentials. Passkeys improve phishing resistance but introduce cloud sync vulnerability. Hawcx eliminates the stored credential entirely. - [Quantum Threats](/docs/v1/core-concepts/quantum-threats): Harvest-now-decrypt-later attacks are happening today. Long-lived keys (passkeys, RSA, ECDSA) are harvestable. Hawcx's ephemeral architecture makes the attack irrelevant. - [Future of Device Identity](/docs/v1/core-concepts/future-of-device-identity): Every modern device has hardware security (Secure Enclave, TEE, TPM, WebCrypto). Hawcx uses it as the foundation for identity. Extends to agent auth and machine identity. ## Get Started - [5-Minute Integration](/docs/v1/get-started/5-minute-guide): Minimal end-to-end passwordless login. Frontend (React or TypeScript/no-framework) + backend (Node.js or Python) code exchange. - [Choose your integration pattern](/docs/v1/get-started/integration-patterns): SDK-embedded vs Hawcx-hosted/OIDC vs social sign-in, and which redirect flow each uses. ## Admin Console - [Overview](/docs/v1/admin-console): Sign in, create your organization, and navigate the console. - [Projects](/docs/v1/admin-console/projects): Create and manage projects — each has its own Config IDs, users, analytics, and audit trail. Filter by name/environment; manage project users and devices. - [Config IDs](/docs/v1/admin-console/config-ids): Public identifiers that connect apps to Hawcx. Provided in Project Settings — the development Config ID appears as soon as a project is created; production is provisioned by Hawcx. - [Environments](/docs/v1/admin-console/environments): Development vs Production environments and how each project's Config ID is provisioned (development shown on creation; production by request). - [Flow Configuration](/docs/v1/admin-console/flow-configuration): Configure auth flows per project. Three phases: primary verification, MFA, device trust. Methods: email OTP, SMS OTP, magic link, QR code, push. - [Dashboard & Analytics](/docs/v1/admin-console/dashboard): DAU, MAU, total users, logins. Role-based views with filters by date, environment, and platform. - [Team Management](/docs/v1/admin-console/team): Invite members, assign roles and projects. Table and hierarchy views. - [Roles & Permissions](/docs/v1/admin-console/roles-and-permissions): Customer Admin, Developer, Viewer roles with permission matrix. - [Audit Logs](/docs/v1/admin-console/audit-logs): Track all actions across your organization for compliance and security. - [Organization Settings](/docs/v1/admin-console/organization-settings): Configure org profile, base URL, industry, and logo. - [Plans & Usage](/docs/v1/admin-console/plans-and-usage): MAU-based billing, usage tracking, plan status. ## Agents (Hawcx AgentAuth) - [Overview](/docs/v1/agents/overview): Purpose-built auth for AI agents. Unique cryptographic identity, per-request authorization, encrypted single-use tokens, human-in-the-loop for high-risk actions. - [Quickstart](/docs/v1/agents/quickstart): Register an agent, authenticate, make authorized API calls. Node.js and Python examples. - [Per-Request Authorization](/docs/v1/agents/tbac-authorization): Task-Based Access Control, per-request permissions, constraint enforcement. - [Token Management](/docs/v1/agents/token-management): Single-use pre-minted tokens, queue lifecycle, session renewal. - [API Reference](/docs/v1/agents/api-reference): SDK methods, token service interface (DequeueToken, TokenStatus, SessionInfo). - [Security Model](/docs/v1/agents/security-model): Zero-trust architecture, threat model, process isolation, anomaly detection, human-in-the-loop. - [LangChain Integration](/docs/v1/agents/examples/langchain): Authenticated LangChain tools with Hawcx agent identity. - [Multi-Agent Delegation](/docs/v1/agents/examples/multi-agent): Scoped delegation between coordinator and worker agents. ## Frontend SDKs - [Web SDK Quickstart](/docs/v1/sdk-reference/frontend/web/quickstart): Install @hawcx/react or @hawcx/core. State machine flow: idle → step → completed. Steps: select_method, enter_code, enter_totp, setup_totp, setup_sms, await_approval, redirect. - [Web SDK API Reference](/docs/v1/sdk-reference/frontend/web/api-reference): All methods, types, step types, and error categories. - [Angular SDK](/docs/v1/sdk-reference/frontend/angular/quickstart): @hawcx/angular — provideHawcx, HawcxService, auth/guest guards, HTTP interceptor, and drop-in components. - [MFA Step-Up](/docs/v1/sdk-reference/frontend/web/mfa-step-up): Higher-assurance flows for sensitive actions. - [Android SDK](/docs/v1/sdk-reference/frontend/android/sdk): Native Android SDK (auto-detects new vs returning user, handles device trust). - [iOS SDK](/docs/v1/sdk-reference/frontend/ios/sdk): Native iOS SDK with Secure Enclave integration. - [React Native SDK](/docs/v1/sdk-reference/frontend/react-native/sdk): Bridge to native SDKs. initialize() + authenticate() + submitOtp(). - [Flutter SDK](/docs/v1/sdk-reference/frontend/flutter/sdk): Dart bridge to native SDKs. Same authentication flow. ## Backend SDKs - [Node.js Quickstart](/docs/v1/sdk-reference/backend/nodejs/quickstart): @hawcx/oauth-client. Exchange authCode + codeVerifier for verified claims (sub, email). - [Node.js Integration](/docs/v1/sdk-reference/backend/nodejs/integrate): Full integration with user management, MFA delegation, session handling. - [Node.js Profile Service](/docs/v1/sdk-reference/backend/nodejs/profile-service): ProfileClient (backend + forUser), users, consents, activity log, ProfileApiError. - [Node.js API Reference](/docs/v1/sdk-reference/backend/nodejs/api-reference): HawcxOAuth, StepUpClient (startToken/consumeReceipt), refreshJwks, error types. - [Python Quickstart](/docs/v1/sdk-reference/backend/python/quickstart): hawcx-oauth-client. Same exchange flow in Flask/Django/FastAPI. - [Python Integration](/docs/v1/sdk-reference/backend/python/integrate): Full integration with delegation client for MFA management. - [Python Profile Service](/docs/v1/sdk-reference/backend/python/profile-service): ProfileClient / AsyncProfileClient (backend + for_user), users, consents, activity log, ProfileApiError. - [Python API Reference](/docs/v1/sdk-reference/backend/python/api-reference): HawcxOAuth (from_issuer), StepUpClient, async clients, full exception hierarchy. - [Java Quickstart](/docs/v1/sdk-reference/backend/java/quickstart): com.hawcx:hawcx-java-sdk. Same exchange flow in Spring Boot, Quarkus, Javalin. - [Java Integration](/docs/v1/sdk-reference/backend/java/integrate): Full integration with DelegationClient for MFA management. - [Java Profile Service](/docs/v1/sdk-reference/backend/java/profile-service): ProfileClient builder (backend + forUser), users, consents, activity log, ProfileApiException. - [Java API Reference](/docs/v1/sdk-reference/backend/java/api-reference): HawcxOauthClient, JwtVerifier, DelegationClient, HawcxException hierarchy. ## Changelog - [Changelog](/docs/v1/changelog): What changed in each published SDK release, current version table across all SDKs, and required actions per release. ## Troubleshooting - [Troubleshooting](/docs/v1/troubleshooting): Common issues, error categories, environment setup, debugging tips. ## Support - [Support](/docs/v1/support): Community Slack, email support, and what to include in a support request for a fast answer. ## Integration Pattern See [Choose your integration pattern](/docs/v1/get-started/integration-patterns) — SDK-embedded vs Hawcx-hosted/OIDC vs social sign-in, and which redirect flow each uses. The standard integration requires two pieces: 1. **Frontend**: Install SDK, create client with `configId`, call `start(email)`, render steps from state machine, send `authCode` + `codeVerifier` to your backend on completion. 2. **Backend**: Install oauth-client, create `HawcxOAuth({ configId })`, implement POST /exchange endpoint that calls `exchangeCode(authCode, codeVerifier)` and returns verified claims. Environment variable convention: - `HAWCX_CONFIG_ID` — your public Config ID - `HAWCX_SECRET_KEY` — backend-only credential blob (optional, for MFA delegation)