Create Supervisor instance
var supervisor = new Supervisor({ url });
Initialize and start the session
supervisor.start({ provider, token });
Stop the session and log out
supervisor.stop();
var supervisor = new Supervisor({ url });
supervisor.start({ provider, token });
supervisor.stop();