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

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

# Interface: AuthCredentials

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

Configuration for resolving an auth strategy.
Combines all possible credential types.

## Properties

### accountManagerHost?

> `optional` **accountManagerHost**: `string`

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

Account Manager host (defaults to account.demandware.com)

***

### apiKey?

> `optional` **apiKey**: `string`

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

API key for api-key auth

***

### apiKeyHeaderName?

> `optional` **apiKeyHeaderName**: `string`

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

Header name for API key (defaults to Authorization with Bearer prefix)

***

### clientAuthMethod?

> `optional` **clientAuthMethod**: [`ClientAuthMethod`](../type-aliases/ClientAuthMethod.md)

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

How client credentials are sent to Account Manager

***

### clientId?

> `optional` **clientId**: `string`

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

OAuth client ID

***

### clientSecret?

> `optional` **clientSecret**: `string`

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

OAuth client secret (for client-credentials flow)

***

### openBrowser()?

> `optional` **openBrowser**: (`url`, `login?`) => `Promise`\<`void`\>

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

Custom browser opener for browser OAuth flows. Receives the authorization URL and, for PKCE logins, a handle to the pending login.

#### Parameters

##### url

`string`

##### login?

[`BrowserLogin`](BrowserLogin.md)

#### Returns

`Promise`\<`void`\>

***

### password?

> `optional` **password**: `string`

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

Password/access key for basic auth

***

### redirectUri?

> `optional` **redirectUri**: `string`

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

Override redirect URI for implicit OAuth flow (e.g., for port forwarding in remote environments)

***

### scopes?

> `optional` **scopes**: `string`[]

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

OAuth scopes to request

***

### username?

> `optional` **username**: `string`

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

Username for basic auth
