Skip to content

resolvePublishableConfig

resolvePublishableConfig(options, caller?): ResolvedPublishableConfig

Defined in: fragments.ts:531

The ONE resolution of { publishableKey?, organizationId?, apiBase? }: explicit props win, the key fills the gaps, and missing configuration or an insecure apiBase throws at setup time (an apiBase that is neither https nor loopback http would send org configuration over a channel any middlebox can rewrite). createClient and the React provider both call this — as two hand-rolled copies they had already diverged once, with the provider silently accepting a plain-http apiBase that createClient refused.

string

string

string

string = "createClient"

ResolvedPublishableConfig