Brex
Manage corporate cards, expenses, and financial operations through Brex.
Auth Model
User OAuth
Standard OAuth 2.0 authorization. A user grants consent and receives an access token. Authpipe handles refresh, rotation, and health monitoring automatically.
Connection Flow
// Get a valid credential — always fresh, zero latency const { credential } = await authpipe.getCredential({ provider: 'brex', tenantId: 'org_acme', userId: 'user_123', });
// Use the credential with the provider API const response = await fetch('https://api.example.com/data', { headers: { Authorization: `Bearer ${credential}` }, });
// Drop-in React component <ConnectButton provider="brex" onSuccess={(conn) => console.log('Connected!', conn)} />
Available Scopes
Permissions you can request when connecting to Brex.
openid OpenID Connect authentication
offline_access Obtain refresh tokens for long-lived access
users.read Read user information
cards.read Read card data
cards.write Create and manage cards
transactions.read Read transaction data
expenses.card.read Read card expense data
accounts.read Read account information
What Authpipe handles for Brex
OAuth Orchestration
PKCE, state validation, callback handling, and provider-specific quirks — all automatic.
Encrypted Vault
AES-256-GCM encryption with per-tenant key isolation. OAuth tokens, API keys, and webhook secrets — never exposed to the frontend.
Silent Refresh
Proactive token refresh before expiry. SDK returns from local cache with zero latency.
Health Monitoring
Scheduled checks detect revoked tokens and expired credentials before users notice.
More Finance providers
Chargebee
Manage subscriptions, invoices, and billing operations through Chargebee's API with basic auth.
Expensify
Manage expense reports and receipts through Expensify.
FreshBooks
Manage invoices, expenses, and accounting through FreshBooks using OAuth authentication.
GoCardless
Collect recurring payments and manage direct debits through GoCardless using OAuth authentication.
Ready to connect Brex?
Get your first 100 connections free. Set up in minutes with our SDK.