---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / AuthConfig

# Interface: AuthConfig

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:73](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L73)

Combined authentication configuration.
B2CInstance uses this to determine which auth strategy to use for each operation type.

## Properties

### apiKey?

> `optional` **apiKey**: [`ApiKeyAuthConfig`](ApiKeyAuthConfig.md)

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:81](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L81)

API key for MRT/external services

***

### authMethods?

> `optional` **authMethods**: [`AuthMethod`](../type-aliases/AuthMethod.md)[]

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:87](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L87)

Allowed authentication methods in priority order.
If not set, defaults to all methods: ['client-credentials', 'implicit', 'basic', 'api-key']

***

### basic?

> `optional` **basic**: [`BasicAuthConfig`](BasicAuthConfig.md)

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:75](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L75)

Basic auth for WebDAV (username/access-key)

***

### oauth?

> `optional` **oauth**: [`OAuthAuthConfig`](OAuthAuthConfig.md)

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:78](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L78)

OAuth credentials for OCAPI/platform APIs
