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

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

# Interface: CreateOAuthOptions

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:400](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/config/types.ts#L400)

Options for creating OAuth auth strategy.

## Properties

### allowedMethods?

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

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:402](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/config/types.ts#L402)

Allowed OAuth methods (default: ['client-credentials', 'implicit'])

***

### openBrowser()?

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

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:408](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/config/types.ts#L408)

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

#### Parameters

##### url

`string`

#### Returns

`Promise`\<`void`\>

***

### redirectUri?

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

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:406](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/config/types.ts#L406)

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/config/types.ts:404](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/config/types.ts#L404)

Additional OAuth scopes to request beyond those in config
