JSON Web Token sign and verify for React Native without native lib bindings (hopefully).
npm install -s kacao/rn-jwt
const jwt = require('jwt');
let encoded = jwt.sign({test: 'test'}, 'secret');
try {
let decoded = jwt.verify(encoded, 'secret');
} catch (err) {
// failed to verify
console.log(err);
}