- OAuth flow — Redirect the user to authorize access, then poll for completion. Best for interactive setups.
- Direct credentials — Pass existing OAuth tokens or API keys directly. Best for backend automation where you already have credentials.
OAuth flow
This is the most common approach. You create a session, send the user to the authorization URL, and poll until they complete it.Step 1: Create an OAuth session
session.authorize_url in their browser. After they approve access, Airstore handles the callback and stores the credentials.
Step 2: Poll for completion
poll() checks the session status every 2 seconds (configurable) and resolves when the user completes or denies authorization. It throws if the session times out or errors.
Step 3: Verify the connection
Direct credentials
If you already have OAuth tokens or an API key, skip the redirect flow entirely:Supported integrations
| Integration | Type | Authentication |
|---|---|---|
| Gmail | gmail | OAuth |
| Google Drive | gdrive | OAuth |
| GitHub | github | OAuth or token |
| Notion | notion | OAuth or token |
| Linear | linear | OAuth |
| Slack | slack | OAuth |
| PostHog | posthog | API key |