---
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:418](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/config/types.ts#L418)

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:420](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/config/types.ts#L420)

Allowed OAuth methods (default: client credentials, then PKCE user auth, then deprecated implicit auth)

***

### openBrowser()?

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

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:426](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/config/types.ts#L426)

Custom browser opener for browser OAuth flows. Receives the authorization URL.

#### Parameters

##### url

`string`

#### Returns

`Promise`\<`void`\>

***

### redirectUri?

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

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:424](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/config/types.ts#L424)

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

***

### scopes?

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

Defined in: [packages/b2c-tooling-sdk/src/config/types.ts:422](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/config/types.ts#L422)

Additional OAuth scopes to request beyond those in config
