Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

zauth integration

nirholas29b3a0617a4f
diff --git a/api/_lib/zauth.js b/api/_lib/zauth.js
index 129c37b1d..7bbcde18d 100644
--- a/api/_lib/zauth.js
+++ b/api/_lib/zauth.js
@@ -22,11 +22,16 @@ let cached;
function buildMiddleware() {
const apiKey = env.ZAUTH_API_KEY;
- if (!apiKey) return null;
+ if (!apiKey) {
+ console.log('[zauth] disabled: ZAUTH_API_KEY not set');
+ return null;
+ }
try {
- return zauthProvider(apiKey, {
+ const mw = zauthProvider(apiKey, {
shouldMonitor: shouldMonitorReq,
});
+ console.log('[zauth] middleware initialized, key prefix:', apiKey.slice(0, 14));
+ return mw;
} catch (err) {
console.error('[zauth] failed to build middleware:', err.message);
return null;