Cymatic is a ...
npm install cymatic
const Cymatic = require('cymatic');
let cymatic = new Cymatic({
token : 'a.token',
secret : 'a.secret'
});
cymatic.on('error', error => {
console.log(error);
}); cymatic.register({ jwt, alias }).then( registration => {
// { registration } response
}, error =>{
// something whent wrong on the registration process
}); cymatic.verify({ jwt, c_uuid }).then( verification => {
// { verificaion } response
}, error =>{
// something whent wrong validating the user data
}); cymatic.login({ jwt, c_uuid }).then( session => {
// { session } response
}, error =>{
// something whent wrong creating the session
}); cymatic.logout(sid).then( signout => {
// { signout } response
}, error =>{
// something whent wrong creating the session
});