Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
jsonwebtoken.js New improvements. Mar 8, 2017
readme.md New changes. Oct 4, 2016

readme.md

# JsonWebToken (JWT) implementation for Total.js

  • npm install jsonwebtoken
  • download and copy jsonwebtoken.js into the /modules/ directory or create a definition with:
INSTALL('module', 'https://modules.totaljs.com/latest/jsonwebtoken.js');

Usage:

var obj = { name: 'total.js' };

// Encrypt
var encoded = F.encrypt(obj, 'KEY');
console.log('encoded', encoded);

// Decrypt
var decoded = F.decrypt(encoded, 'KEY'));
console.log('decoded', decoded);