Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

816 B
Raw Blame
/**
 * Shared constants for the frontend application
 */

// Admin impersonation
export const IMPERSONATION_HEADER_NAME = "X-Act-As-User-Id";
// Intentionally identical strings: the cookie and sessionStorage key share the same name
// so both storage mechanisms use a predictable, consistent identifier for the same value.
export const IMPERSONATION_STORAGE_KEY = "admin-impersonate-user-id";
export const IMPERSONATION_COOKIE_NAME = "admin-impersonate-user-id";

// API key authentication
export const API_KEY_HEADER_NAME = "X-API-Key";
export const CLIENT_COUNTRY_TOKEN_HEADER_NAME = "X-Client-Country-Token";
export const CLIENT_IP_TOKEN_HEADER_NAME = "X-Client-IP-Token";
export const VERCEL_COUNTRY_HEADER_NAME = "x-vercel-ip-country";

// Routes
export const MARKETPLACE_EXPERTS_HREF = "/marketplace#experts";