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

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

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

***

### apiKey?

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

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

API key for api-key auth

***

### apiKeyHeaderName?

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

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

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

OAuth client ID

***

### clientSecret?

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

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

OAuth client secret (for client-credentials flow)

***

### openBrowser()?

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

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

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

Password/access key for basic auth

***

### redirectUri?

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

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

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

OAuth scopes to request

***

### username?

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

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

Username for basic auth
