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.
Parameters
Section titled “Parameters”options
Section titled “options”apiBase?
Section titled “apiBase?”string
organizationId?
Section titled “organizationId?”string
publishableKey?
Section titled “publishableKey?”string
caller?
Section titled “caller?”string = "createClient"