Skip to content

Commit 217ea0f

Browse files
committed
chore(readme): userid explain
1 parent 2eef86b commit 217ea0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ After you install and import the SDK, create a single, shared instance of the Fe
5757
NPM:
5858

5959
```js
60-
const uniqueUserId = /* uniqueUserId */;
61-
const user = new FPUser(uniqueUserId);
60+
const userId = /* unique user id in your business logic */;
61+
const user = new FPUser(userId);
6262
user.with("userId", /* userId */);
6363

6464
let remoteUrl = "https://featureprobe.io/server";

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h3>json type</h3>
6666

6767
</div>
6868
<script>
69-
const user = new featureProbe.FPUser("unique_user_key");
69+
const user = new featureProbe.FPUser("unique_user_id");
7070
user.with("userId", "1234567890");
7171

7272
const fpClient = new featureProbe.FeatureProbe({

0 commit comments

Comments
 (0)