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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / ImplicitOAuthConfig

# Interface: ImplicitOAuthConfig

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:27](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L27)

Configuration for the implicit OAuth flow.

## Properties

### accountManagerHost?

> `optional` **accountManagerHost**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:33](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L33)

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

***

### clientId

> **clientId**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:29](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L29)

OAuth client ID registered with Account Manager

***

### localPort?

> `optional` **localPort**: `number`

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:38](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L38)

Local port for the OAuth redirect server.
Defaults to 8080 or SFCC_OAUTH_LOCAL_PORT environment variable.

***

### openBrowser()?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:51](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L51)

Custom browser opener. Receives the authorization URL and should open it
in the user's browser. Useful in environments where the default `open` package
doesn't work (e.g., VS Code remote/Codespaces where `vscode.env.openExternal` is needed).

#### Parameters

##### url

`string`

#### Returns

`Promise`\<`void`\>

***

### persistSession?

> `optional` **persistSession**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:58](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L58)

Persist the access token to the unified auth-session store between CLI
invocations. The implicit flow returns no refresh token, so when the
stored token expires the user is prompted again.
Defaults to `true`.

***

### redirectUri?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:45](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L45)

Full redirect URI for OAuth. Use when running behind a proxy where
localhost cannot be reached directly by the browser.
Defaults to `http://localhost:${localPort}` or SFCC_REDIRECT_URI environment variable.
The local server still listens on localPort regardless of this setting.

***

### scopes?

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

Defined in: [packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts:31](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts#L31)

OAuth scopes to request (e.g., 'sfcc.products', 'sfcc.orders')
