RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/meteorOverrides/totpOnCall.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function withSyncTOTP has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const withSyncTOTP = (call: (name: string, ...args: any[]) => any) => {
    const callWithTotp =
        (methodName: string, args: unknown[], callback: LoginCallback) =>
        (twoFactorCode: string, twoFactorMethod: string): unknown =>
            call(
Severity: Minor
Found in apps/meteor/client/meteorOverrides/totpOnCall.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status