---
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:89](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/702798b6e2ea7765dbfd4b62ff999546a36b6859/packages/b2c-tooling-sdk/src/auth/types.ts#L89)

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:97](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/702798b6e2ea7765dbfd4b62ff999546a36b6859/packages/b2c-tooling-sdk/src/auth/types.ts#L97)

API key for MRT/external services

***

### authMethods?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:103](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/702798b6e2ea7765dbfd4b62ff999546a36b6859/packages/b2c-tooling-sdk/src/auth/types.ts#L103)

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:91](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/702798b6e2ea7765dbfd4b62ff999546a36b6859/packages/b2c-tooling-sdk/src/auth/types.ts#L91)

Basic auth for WebDAV (username/access-key)

***

### oauth?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:94](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/702798b6e2ea7765dbfd4b62ff999546a36b6859/packages/b2c-tooling-sdk/src/auth/types.ts#L94)

OAuth credentials for OCAPI/platform APIs
