@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
Pick<CreateOAuthOptions,"redirectUri"|"openBrowser">
Properties
oauthStrategy?
optionaloauthStrategy: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()?
optionalopenBrowser: (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?
optionalredirectUri: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)