src/vk-dirty-api.js
Function token
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function token (clientId, login, pass, phone) {
let params = isPlainObject(clientId) ? clientId : { client_id: clientId, login, pass, phone }
try {
params = joi.attempt(params, paramsSchema, 'Invalid parameter')
Function getToken
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getToken () {
return req('https://oauth.vk.com/authorize', {
qs: {
client_id: params.client_id,
scope: params.scope.join(','),