RocketChat/Rocket.Chat

View on GitHub
ee/apps/account-service/src/lib/loginViaResume.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function loginViaResume has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function loginViaResume(resume: string, loginExpiration: number): Promise<false | ILoginResult> {
    const hashedToken = _hashLoginToken(resume);

    const user = await Users.findOne<IUser>(
        {
Severity: Minor
Found in ee/apps/account-service/src/lib/loginViaResume.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status