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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [config](../index.md) / ResolvedB2CConfig

# Interface: ResolvedB2CConfig

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

## Properties

### sources

> `readonly` **sources**: [`ConfigSourceInfo`](ConfigSourceInfo.md)[]

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

Information about which sources contributed to the config

***

### values

> `readonly` **values**: [`NormalizedConfig`](NormalizedConfig.md)

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

Raw configuration values

***

### warnings

> `readonly` **warnings**: [`ConfigWarning`](ConfigWarning.md)[]

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

Warnings generated during resolution

## Methods

### createB2CInstance()

> **createB2CInstance**(`options?`): [`B2CInstance`](../../instance/classes/B2CInstance.md)

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

Creates a B2CInstance from the resolved configuration.

#### Parameters

##### options?

`Pick`\<[`CreateOAuthOptions`](CreateOAuthOptions.md), `"redirectUri"` \| `"openBrowser"`\>

Options for implicit OAuth (redirectUri, openBrowser)

#### Returns

[`B2CInstance`](../../instance/classes/B2CInstance.md)

#### Throws

Error if hostname is not configured

***

### createBasicAuth()

> **createBasicAuth**(): [`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

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

Creates a Basic auth strategy.

#### Returns

[`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

#### Throws

Error if username or password is not configured

***

### createMrtAuth()

> **createMrtAuth**(): [`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

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

Creates an MRT auth strategy (API key).

#### Returns

[`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

#### Throws

Error if mrtApiKey is not configured

***

### createOAuth()

> **createOAuth**(`options?`): [`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

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

Creates an OAuth auth strategy.

#### Parameters

##### options?

[`CreateOAuthOptions`](CreateOAuthOptions.md)

OAuth options (allowed methods)

#### Returns

[`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

#### Throws

Error if clientId is not configured

***

### createWebDavAuth()

> **createWebDavAuth**(): [`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

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

Creates a WebDAV auth strategy.
Prefers Basic auth if available, falls back to OAuth.

#### Returns

[`AuthStrategy`](../../auth/interfaces/AuthStrategy.md)

#### Throws

Error if neither Basic auth nor OAuth is configured

***

### hasB2CInstanceConfig()

> **hasB2CInstanceConfig**(): `boolean`

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

Check if B2C instance configuration is available.
Requires: hostname

#### Returns

`boolean`

***

### hasBasicAuthConfig()

> **hasBasicAuthConfig**(): `boolean`

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

Check if Basic auth configuration is available.
Requires: username and password

#### Returns

`boolean`

***

### hasMrtConfig()

> **hasMrtConfig**(): `boolean`

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

Check if MRT configuration is available.
Requires: mrtApiKey

#### Returns

`boolean`

***

### hasOAuthConfig()

> **hasOAuthConfig**(): `boolean`

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

Check if OAuth configuration is available.
Requires: clientId

#### Returns

`boolean`
