Comparing version 0.1.2 to 0.2.0
@@ -0,1 +1,6 @@ | ||
0.2.0 | ||
===== | ||
* fixed deprecated usage of node-uuid in request dep, thanks @skarbovskiy. Details in [#9](https://github.com/centrifugal/jscent/pull/9) | ||
0.1.2 | ||
@@ -2,0 +7,0 @@ ===== |
{ | ||
"name": "jscent", | ||
"description": "Node.js client to interact with the Centrifugo HTTP API", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"author": "Alexandr Emelin <frvzmb@gmail.com>", | ||
"contributors": [], | ||
"dependencies": { | ||
"request": "=2.45.0" | ||
"request": "=2.87.0" | ||
}, | ||
@@ -10,0 +10,0 @@ "devDependencies": {}, |
@@ -29,1 +29,12 @@ # Node.js library for Centrifugo HTTP API. | ||
### generating a token | ||
to create a token as described here: | ||
https://fzambia.gitbooks.io/centrifugal/content/clients/javascript.html#token-required | ||
```javascript | ||
var Token = require('jscent').Token; | ||
var TokenGen = new Token('SECRET_KEY'); | ||
var token = TokenGen.clientToken(user, timestamp, info); | ||
``` | ||
11147
40
Updatedrequest@=2.87.0