Typescript sdkCredentials
Environment Variables
Copy page
Environment variables are a simple way to store credentials in your environment. They are stored in the environment variables in your .env file.
Referencing credentials in SDK
Here is an example of how to reference a credential in the TypeScript SDK for Bearer Authentication.
Credential Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier for the credential |
type | CredentialStoreType | Yes | Type of credential store (memory, nango, or keychain) |
credentialStoreId | string | Yes | Identifier for the specific credential store instance |
retrievalParams | object | Yes | Parameters for retrieving the credential from the store. |