There was an error while loading. Please reload this page.
Start off by calling init without an Express app passed in. For example:
init
pavlok.init("clientId", "clientSecret", { "port": 3000 //Port to run the auth token accepting server on });
Then, call login to start the login process, which should bring up a browser on your computer. This is done as follows:
pavlok.login(function(result, code){ if(result){ console.log("Code is " + code); //Auth code is code } });
You're ready to start sending stimuli if result is true!
result
true