diff --git a/hermes-k8s.yaml b/hermes-k8s.yaml index c6cc1c6..45762ca 100644 --- a/hermes-k8s.yaml +++ b/hermes-k8s.yaml @@ -22,7 +22,7 @@ spec: fsGroup: 1000 containers: - name: hermes-mcp - image: localhost:32000/hermes-mcp@sha256:c3d6ce959184e3fdf0d33ce84547aa0b0092ffdf535da90e09e18e161108ed6a + image: localhost:32000/hermes-mcp@sha256:d282f50a2409b322ffbf5a7e10511493e3fcf7346a9fb47ecfac10b8cbe02660 imagePullPolicy: Always securityContext: allowPrivilegeEscalation: false diff --git a/src/clients/facebook.ts b/src/clients/facebook.ts index e9458c0..6afe029 100644 --- a/src/clients/facebook.ts +++ b/src/clients/facebook.ts @@ -22,8 +22,8 @@ async function resolveCreds( ): Promise<{ accessToken: string; pageId: string }> { if (customer) { const creds = await customer.getCredential('facebook'); - if (!creds) throw new Error('Facebook not connected for this account'); - return { accessToken: creds.accessToken, pageId: creds.pageId }; + if (creds) return { accessToken: creds.accessToken, pageId: creds.pageId }; + // Fall back to default env credentials when customer has no per-account creds } const account = args.account ?? 'default'; const accessToken = getEnvToken(account); diff --git a/src/clients/instagram.ts b/src/clients/instagram.ts index 48ac637..38d2386 100644 --- a/src/clients/instagram.ts +++ b/src/clients/instagram.ts @@ -24,8 +24,8 @@ async function resolveCreds( ): Promise<{ accessToken: string; businessAccountId: string }> { if (customer) { const creds = await customer.getCredential('instagram'); - if (!creds) throw new Error('Instagram not connected for this account'); - return { accessToken: creds.accessToken, businessAccountId: creds.businessAccountId }; + if (creds) return { accessToken: creds.accessToken, businessAccountId: creds.businessAccountId }; + // Fall back to default env credentials when customer has no per-account creds } const account = args.account ?? 'default'; const accessToken = getEnvToken(account);