following along part 3
This commit is contained in:
parent
2e3dfd4114
commit
ade19f00bc
602 changed files with 67987 additions and 0 deletions
23
parts/3/followAlong/node_modules/cookie-signature/Readme.md
generated
vendored
Normal file
23
parts/3/followAlong/node_modules/cookie-signature/Readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
# cookie-signature
|
||||
|
||||
Sign and unsign cookies.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var cookie = require('cookie-signature');
|
||||
|
||||
var val = cookie.sign('hello', 'tobiiscool');
|
||||
val.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');
|
||||
|
||||
var val = cookie.sign('hello', 'tobiiscool');
|
||||
cookie.unsign(val, 'tobiiscool').should.equal('hello');
|
||||
cookie.unsign(val, 'luna').should.be.false;
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT.
|
||||
|
||||
See LICENSE file for details.
|
||||
Loading…
Add table
Add a link
Reference in a new issue