vk-auth-prompt
v1.0.0
Published
CLI auth prompt for vk.com api - https://vk.com/dev
Downloads
13
Readme
vk-auth-prompt
CLI auth prompt for vk.com api
Install
$ npm install --save vk-auth-prompt
Usage
const vkAuthPrompt = require('vk-auth-prompt');
vkAuthPrompt('<app-id>', '<scope>', getToken, setToken)
.then(token => {
console.log(token);
});
function getToken() {
// get from storage
}
function setToken() {
// persist in storage
}
License
MIT © ewnd9