decocms
Version:
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
2 lines (1 loc) • 461 B
JavaScript
import{et as e}from"./index-DoEtSiIe.js";import{a as c}from"./mcp-oauth-BkAlBGe_.js";async function i(n,o){const t=await(await fetch(`/api/${encodeURIComponent(n)}/connections/${o}/oauth-token/status`,{credentials:"include"}).catch(()=>null))?.json().catch(()=>null);return!!t&&typeof t=="object"&&"sandboxSignIn"in t&&t.sandboxSignIn===!0}async function r(n){return n.orgSlug&&await i(n.orgSlug,n.connectionId)?e(n.orgSlug,n.connectionId):c(n)}export{r as a};