File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 11import * as LaunchDarkly from 'launchdarkly-node-server-sdk' ;
22
3- // TODO : Enter your LaunchDarkly SDK key here
4- const client = LaunchDarkly . init ( "YOUR_SDK_KEY" ) ;
3+ // Set sdkKey to your LaunchDarkly SDK key.
4+ const sdkKey = "" ;
55
6+ // Set featureFlagKey to the feature flag key you want to evaluate.
7+ const featureFlagKey = "my-boolean-flag" ;
8+
9+ const client = LaunchDarkly . init ( sdkKey ) ;
10+
11+ // Set up the user properties. This use should appear on your LaunchDarkly
12+ // users dashboard soon after you run the demo.
613const user = {
7- "firstName" :"Bob" ,
8- "lastName" :"Loblaw" ,
9- "key" :"louise@example.com" ,
10- "custom" :{
11- "groups" :"beta_testers"
12- }
14+ "name" : "Sandy" ,
15+ "key" : "example-user-key"
1316} ;
1417
1518client . once ( 'ready' , function ( ) {
You can’t perform that action at this time.
0 commit comments