Skip to content

Instantly share code, notes, and snippets.

@gnap
Created March 20, 2013 15:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gnap/5205763 to your computer and use it in GitHub Desktop.
Save gnap/5205763 to your computer and use it in GitHub Desktop.
tornado cookie signature in node.js
@tupy
Copy link

tupy commented May 21, 2015

Hey man,
I think the last line is: return new Buffer(parts[0], 'base64').toString('utf8');

@tupy
Copy link

tupy commented Jul 6, 2015

Also:
max_age_days = max_age_days === null ? 31 : max_age_days;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment