timbru31/spigot-anti-piracy-backend

View on GitHub
src/app.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
97%

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

async function handleAuthRequest(ctx: Router.RouterContext) {
    const request = ctx.request;
    const body = request.body as IRequestBody;
    const userId = body.user_id! || body.userId!;
    const ip = request.ip;
Severity: Minor
Found in src/app.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status