Connectors Module
OAuth token management for external services.base44.asServiceRole.connectors— App-scoped OAuth tokens (backend/service role only). All users share the same connected account.
Contents
Service Role Connectors (base44.asServiceRole.connectors)
App-scoped OAuth tokens. The app builder connects the account once; all users share it. Backend/service role only.
Methods
| Method | Signature | Description |
|---|---|---|
getConnection(integrationType) | Promise<ConnectorConnectionResponse> | Get access token and optional connection config |
getAccessToken(integrationType) | Promise<string> | ⚠️ Deprecated — use getConnection() instead |
Examples
Available Services
| Service | Type identifier |
|---|---|
| Airtable | airtable |
| Box | box |
| ClickUp | clickup |
| Discord | discord |
| Dropbox | dropbox |
| GitHub | github |
| Gmail | gmail |
| Google Analytics | google_analytics |
| Google BigQuery | googlebigquery |
| Google Calendar | googlecalendar |
| Google Classroom | google_classroom |
| Google Docs | googledocs |
| Google Drive | googledrive |
| Google Search Console | google_search_console |
| Google Sheets | googlesheets |
| Google Slides | googleslides |
| HubSpot | hubspot |
| Linear | linear |
linkedin | |
| Microsoft Teams | microsoft_teams |
| Microsoft OneDrive | one_drive |
| Notion | notion |
| Outlook | outlook |
| Salesforce | salesforce |
| SharePoint | share_point |
| Slack User | slack |
| Slack Bot | slackbot |
| Splitwise | splitwise |
| TikTok | tiktok |
| Typeform | typeform |
| Wix | wix |
| Wrike | wrike |
npx base44 connectors list-available from the CLI to see all available types.
Setup Requirements
- Builder plan or higher
- Backend functions enabled (for service role connectors)
- Connector configured in Base44 dashboard (OAuth flow completed)
Important Notes
- Service role connectors: One account per connector per app — all users share the same connected account
- You handle the API calls: Base44 provides the token; you make the actual API requests
- Token refresh: Base44 handles token refresh automatically

