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

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

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

***

### apiKey?

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

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

API key for api-key auth

***

### apiKeyHeaderName?

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

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

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

***

### clientId?

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

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

OAuth client ID

***

### clientSecret?

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

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

OAuth client secret (for client-credentials flow)

***

### openBrowser()?

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

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

Custom browser opener for implicit OAuth flow. Receives the authorization URL.

#### Parameters

##### url

`string`

#### Returns

`Promise`\<`void`\>

***

### password?

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

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

Password/access key for basic auth

***

### redirectUri?

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

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

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

OAuth scopes to request

***

### username?

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

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

Username for basic auth
