Created
March 26, 2013 20:17
-
-
Save brianc/5248813 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //if you have this for cookies: | |
| var cookies = { | |
| 'connect.sid':'alskdjfasdf' | |
| }; | |
| //you should be able to do this: | |
| var utils = require('connect').utils; | |
| utils.parseSignedCookies(cookies, 'your secret key'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/senchalabs/connect/blob/master/lib/utils.js#L186