Skip to content

cymaticsecurity/cymatic-client-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cymatic on node

Cymatic is a ...

Instalation

 npm install cymatic

Usage

Set up cymatic

  const Cymatic = require('cymatic');

  let cymatic = new Cymatic({
    token  : 'a.token',
    secret : 'a.secret'
  });

  cymatic.on('error', error => {
    console.log(error);
  });

Register

  cymatic.register({ jwt, alias }).then( registration => {
    // { registration } response
  }, error =>{
    // something whent wrong on the registration process
  });

Verify

  cymatic.verify({ jwt, c_uuid }).then( verification => {
    // { verificaion } response
  }, error =>{
    // something whent wrong validating the user data
  });

Login

  cymatic.login({ jwt, c_uuid }).then( session => {
    // { session } response
  }, error =>{
    // something whent wrong creating the session
  });

Logout

  cymatic.logout(sid).then( signout => {
    // { signout } response
  }, error =>{
    // something whent wrong creating the session
  });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published