Skip to content

Commit

Permalink
chore: reword phrase in READMe
Browse files Browse the repository at this point in the history
  • Loading branch information
pratik151192 committed Oct 24, 2023
1 parent 3737728 commit 4c2a7b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/nodejs/token-vending-machine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ You should see an output like:
{"authToken":"someShortLivedDisposableToken","expiresAt":1698119397}
```

You can also pass a `tokenId` as a query string to your `curl` command. This is particularly useful to add context
to your token, that can be viewed as a part of [Momento Topic's](https://www.gomomento.com/services/topics) subscription messages.
An example is a chat application, where receivers can verify the authenticity of the sender. This example uses an optional `name` as a query string
parameter, so your curl command with the API endpoint will look like:
You can also pass a tokenId as a query string to your curl command to add context to your token. This can be particularly useful when using [Momento Topics](https://www.gomomento.com/services/topics) as the tokenId can be retrieved from subscription messages, allowing your application to distinguish between different subscribers.

`https://9jkmukxn68.execute-api.us-west-2.amazonaws.com/prod?name=Taylor`

Expand Down

0 comments on commit 4c2a7b5

Please sign in to comment.