GladysProject/Gladys

View on GitHub
server/lib/gateway/gateway.loginTwoFactor.js

Summary

Maintainability
A
1 hr
Test Coverage

Function loginTwoFactor has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function loginTwoFactor(twoFactorToken, twoFactorCode) {
  // We login with two factor code
  await this.gladysGatewayClient.loginInstance(twoFactorToken, twoFactorCode);
  // we get all variables
  const gladysGatewayRefreshToken = await this.variable.getValue('GLADYS_GATEWAY_REFRESH_TOKEN');
Severity: Minor
Found in server/lib/gateway/gateway.loginTwoFactor.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status