timbru31/spigot-anti-piracy-backend

View on GitHub

Showing 1 of 1 total issue

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
    Severity
    Category
    Status
    Source
    Language