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.

795 B
Raw Blame
-- Immediate revocation for OAuth connected apps.
--
-- Access tokens are stateless JWTs that live an hour, so deleting an app's
-- refresh tokens alone left a revoked cloud connector working until its current
-- access token expired. One row per (user, client) records the moment the person
-- revoked it; authenticateBearer rejects any access token issued at or before
-- that moment. A token minted after the person re-authorizes the app is newer
-- than the row and works again.
CREATE TABLE IF NOT EXISTS oauth_client_revocations (
    user_id    uuid        NOT NULL REFERENCES users(id) ON DELETE CASCADE,
    client_id  text        NOT NULL REFERENCES oauth_clients(client_id) ON DELETE CASCADE,
    revoked_at timestamptz NOT NULL DEFAULT now(),
    PRIMARY KEY (user_id, client_id)
);