Corsair handles authentication for production-grade applications. Whether you need OAuth flows, API keys, or bot tokens, Corsair manages credentials across all your tenants.Documentation Index
Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
Use this file to discover all available pages before exploring further.
corsair.ts
Auth Types
Choose the auth type for each integration:API Key
For integrations that use static API keys or bot tokens.OAuth 2.0
For integrations that require user authorization.Automatic Token Refresh
When using OAuth, tokens expire. Corsair handles this automatically:- Before making a request, checks if the token is expired
- If expired, uses the refresh token to get a new access token
- Stores the new token and continues with the request
Envelope Encryption
Corsair uses envelope encryption to protect credentials:- You set one KEK (Key Encryption Key) in your environment variables
- Each connection gets its own DEK (Data Encryption Key)
- All credentials are encrypted with the connection’s DEK
- The DEK is encrypted with your KEK
.env
Bring Your Own KMS
If you’re using a Key Management Service (AWS KMS, Google Cloud KMS, etc.), you can opt out of Corsair’s built-in encryption.corsair.ts
Multi-Tenant Credentials
With multi-tenancy, each tenant has their own credentials stored securely.example.ts