Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

494 B
Raw Blame
import { MAX_AGENT_TURN_WALL_CLOCK_MS } from '@activepieces/shared'

const CLOCK_SKEW_BUFFER_SECONDS = 60

export const MCP_OAUTH_ACCESS_TOKEN_TTL_SECONDS = 15 * 60
export const MCP_OAUTH_REFRESH_TOKEN_TTL_MS = 30 * 24 * 60 * 60 * 1000
export const MCP_OAUTH_ID_TOKEN_TTL_SECONDS = 60 * 60
export const MCP_OAUTH_REVOKED_GRANT_TTL_SECONDS = MCP_OAUTH_ACCESS_TOKEN_TTL_SECONDS + CLOCK_SKEW_BUFFER_SECONDS
export const MCP_CHAT_TURN_ACCESS_TOKEN_TTL_SECONDS = MAX_AGENT_TURN_WALL_CLOCK_MS / 1000