v12/node-vk-api

View on GitHub
src/vk-dirty-api.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function token has 73 lines of code (exceeds 25 allowed). Consider refactoring.
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')
Severity: Major
Found in src/vk-dirty-api.js - About 2 hrs to fix

    Function getToken has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function getToken () {
        return req('https://oauth.vk.com/authorize', {
          qs: {
            client_id: params.client_id,
            scope: params.scope.join(','),
    Severity: Major
    Found in src/vk-dirty-api.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status