---
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:135](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/types.ts#L135)

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:143](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/types.ts#L143)

API key for MRT/external services

***

### authMethods?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:149](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/types.ts#L149)

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:137](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/types.ts#L137)

Basic auth for WebDAV (username/access-key)

***

### oauth?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:140](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/types.ts#L140)

OAuth credentials for OCAPI/platform APIs
