isPublishableKey()
Esta página aún no está disponible en tu idioma.
A publishable key is the only key allowed in a browser.
function isPublishableKey(key: string): booleanParameters
Section titled “Parameters”keystringObligatorioAny string.
Returns
Section titled “Returns”boolean: True for pk_test_… and pk_live_… keys.
Example
Section titled “Example”import { isPublishableKey } from "@tryyoursize/sdk";if (!isPublishableKey(settings.tysKey)) throw new Error("Use the publishable key");¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.