From 9aa94df271be3c09a32b88a84d71d7bde766b39a Mon Sep 17 00:00:00 2001 From: Tyler Potter Date: Thu, 5 Dec 2024 15:45:51 -0700 Subject: [PATCH] Update quickstart.mdx --- docs/sdks/client-sdks/javascript/quickstart.mdx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/sdks/client-sdks/javascript/quickstart.mdx b/docs/sdks/client-sdks/javascript/quickstart.mdx index beb68674..c74d25f5 100644 --- a/docs/sdks/client-sdks/javascript/quickstart.mdx +++ b/docs/sdks/client-sdks/javascript/quickstart.mdx @@ -70,12 +70,10 @@ First, initialize the SDK using your SDK key. The SDK key is different from the ```js -import Eppo from "@eppo/js-client-sdk"; +import { init } from "@eppo/js-client-sdk"; -const eppo = new Eppo({ - apiKey: 'SDK_KEY', -}); -``` +await init({ apiKey: "" }); +``` :::note The SDK key is different from the project API key. You can find your SDK key in the [SDK Keys section of the Eppo interface](https://eppo.cloud/configuration/environments/keys). @@ -118,6 +116,7 @@ const variation = eppoClient.getStringAssignment( subjectAttributes, defaultValue ); + ``` ### Assignment Types @@ -327,4 +326,4 @@ Now that you've seen how to make assignments with the Eppo JavaScript SDK, we st - [Initialization Configuration](/sdks/client-sdks/javascript/initialization) - [Assignment details](/sdks/client-sdks/javascript/assignments) - [Using the SDK with React](/sdks/client-sdks/javascript/react) -- [Using the SDK with Next.js](/sdks/client-sdks/javascript/nextjs-setup) if you are using Next.js \ No newline at end of file +- [Using the SDK with Next.js](/sdks/client-sdks/javascript/nextjs-setup) if you are using Next.js