https://www.growthbook.io/ logo
d

damp-toothbrush-94983

07/10/2023, 7:59 PM
does each environment have diff client id? or application can retrieve all environment values at same time and pick the value based on app's environment?
f

fresh-football-47124

07/10/2023, 8:00 PM
Each SDK endpoint can specify an environment
(and project, if needed)
d

damp-toothbrush-94983

07/10/2023, 8:03 PM
Do you mean
Copy code
<https://cdn.growthbook.io/api/features/{client-id}/{env}>?
f

fresh-football-47124

07/10/2023, 8:09 PM
Not exactly - when you set up the SDK, you can select what env to use
d

damp-toothbrush-94983

07/10/2023, 8:25 PM
I see. the created client key is tired to the environment. For example, for three environments, we need three different client keys.
Am I right? Then, all of these three keys are tied with same account but diff environment
f

fresh-football-47124

07/10/2023, 8:33 PM
correct
typically environments have their own set of env variables and specific set of rules
if you wanted one GrowthBook environment to do multiple environments on your end, you can just name it whatever you like (like production and mobile)
d

damp-toothbrush-94983

07/10/2023, 8:35 PM
with different feature name?
f

fresh-football-47124

07/11/2023, 5:46 AM
I just mean that an SDK per environment is normal- but if you want to us that SDK url multiple places, that’s up to you
d

damp-toothbrush-94983

07/13/2023, 5:14 PM
@fresh-football-47124 How can I add security token in the call header when I build new GrowthBook object in our application?
f

fresh-football-47124

07/13/2023, 5:15 PM
what SDK?
d

damp-toothbrush-94983

07/13/2023, 5:15 PM
React
We try to use in house GB
f

fresh-football-47124

07/13/2023, 5:16 PM
okay
what security token are you referring to?
d

damp-toothbrush-94983

07/13/2023, 5:17 PM
In each https call, the request header should have a security token.
Does the context have Authorization or similar field which will be used in request header?
or is it possible we add this field in GB SDK call header?