billowy-lizard-55653
11/29/2023, 4:33 PMswift-helmet-3648
11/29/2023, 4:36 PMdecryptionKey
propertyswift-helmet-3648
11/29/2023, 4:41 PMsetEncryptedFeatures
accepts it as an argument as well.billowy-lizard-55653
11/29/2023, 4:43 PMswift-helmet-3648
11/29/2023, 4:44 PMpublic async setEncryptedFeatures(
encryptedString: string,
decryptionKey?: string,
subtle?: SubtleCrypto
): Promise<void>
billowy-lizard-55653
11/29/2023, 4:45 PMbillowy-lizard-55653
11/29/2023, 5:12 PMconst setFeaturePromise = new Promise(() => {
growthBook.setEncryptedFeatures(json.features, decryptionKey)
})
await setFeaturePromise.then(() => {
console.log(growthBook)
})
billowy-lizard-55653
11/29/2023, 5:13 PMswift-helmet-3648
11/29/2023, 5:25 PMswift-helmet-3648
11/29/2023, 5:28 PMswift-helmet-3648
11/29/2023, 5:28 PMbillowy-lizard-55653
11/29/2023, 5:53 PMawait growthBook.setEncryptedFeatures(
json.encryptedFeatures,
decryptionKey
)
billowy-lizard-55653
11/29/2023, 5:54 PM