Platform Architecture

Four cryptographic modules. Zero password databases.

W3C WebAuthn L3 / CTAP 2.1

FIDO2 & WebAuthn Level 3 Engine

Cryptographic challenge generation, resident key discovery, and FIDO Metadata Service (MDS3) root certificate validation compiled to deterministic edge workers.

  • · Supports ES256, Ed25519, and RS256 public key algorithms
  • · Automated AAGUID allowlists for FIPS-140-3 security keys
  • · Zero shared secrets stored in primary application databases
src/auth/passkey.ts Full SDK Docs →
import { Bastion } from "@bastionid/sdk";

const auth = new Bastion({ tenant: process.env.BASTION_TENANT });

export async function beginLogin(userId: string) {
  return auth.passkeys.begin({ userId, userVerification: "required" });
}

export async function finishLogin(assertionJson: string) {
  return auth.passkeys.verify(assertionJson, { attestation: "mds-strict" });
}