Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / config / CreateB2CInstanceOptions

Interface: CreateB2CInstanceOptions

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:430

Options for constructing a B2C instance from resolved configuration.

Extends

Properties

oauthStrategy?

optional oauthStrategy: AuthStrategy | () => AuthStrategy

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:436

Pre-resolved OAuth strategy, or a lazy factory for one. CLI command bases use the factory form to preserve stored PKCE sessions and avoid prompting unless an OAuth-backed client is actually used.


openBrowser()?

optional openBrowser: (url) => Promise<void>

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:426

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

Parameters

url

string

Returns

Promise<void>

Inherited from

CreateOAuthOptions.openBrowser


redirectUri?

optional redirectUri: string

Defined in: packages/b2c-tooling-sdk/src/config/types.ts:424

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

Inherited from

CreateOAuthOptions.redirectUri

Released under the Apache-2.0 License.