feat(connectors): add getConnection({ connectorId }) overload for BYO_SHARED#160
feat(connectors): add getConnection({ connectorId }) overload for BYO_SHARED#160
Conversation
…_SHARED
Backend functions can now retrieve the OAuth access token + connection config
for a workspace-registered connector (backed by an OrganizationConnector that
the app builder consented to) via a new overload on getConnection:
await base44.asServiceRole.connectors.getConnection({ connectorId: "..." });
Existing string-arg callers are unchanged — they continue to resolve to the
platform-SHARED path. The overload dispatches on argument shape (string vs
object) and hits a new server route
GET /apps/{app_id}/external-auth/tokens/by-connector/{connector_id}
for the workspace-connector lookup.
|
Claude finished @cowchimp's task —— View job PR Review: Add getConnection({ connectorId }) overload for BYO_SHAREDSummaryThis PR adds support for workspace-registered connectors by introducing a new overload for the Code Quality and Best Practices ✅Strengths:
Minor suggestions:
Potential Bugs or Issues
|
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.26-pr.160.6071150Prefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.26-pr.160.6071150"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.26-pr.160.6071150"
}
}
Preview published to npm registry — try new features instantly! |
Backend functions can now retrieve the OAuth access token + connection config for a workspace-registered connector (backed by an OrganizationConnector that the app builder consented to) via a new overload on getConnection:
await base44.asServiceRole.connectors.getConnection({ connectorId: "..." });
Existing string-arg callers are unchanged — they continue to resolve to the platform-SHARED path. The overload dispatches on argument shape (string vs object) and hits a new server route GET /apps/{app_id}/external-auth/tokens/by-connector/{connector_id} for the workspace-connector lookup.