@jvenema/liveswitch-cloud-console-login
v1.0.5
Published
Simple login module that logs a user into the LiveSwitch Cloud console and provides an API key and user id back. Useful for getting application ids without having to force a copy/paste from the console manually.
Downloads
2
Readme
LiveSwitch Cloud Console Login
Simple login module that logs a user into the LiveSwitch Cloud console and provides an API key and user id back. Useful for getting application ids without having to force a copy/paste from the console manually.
Sample Usage
Install the package
npm install @jvenema/liveswitch-cloud-console-login
Use the package
const login = require('@jvenema/liveswitch-cloud-console-login');
(async function() {
const loginResult = await login()
console.log('API key: ', loginResult.apiKey)
})();
Test
cd tests
npm install
node login-test.js