OWASP/SSO_Project

View on GitHub
js-backend/utils/middleware.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createAuthToken has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    createAuthToken(req, res, next) {
        if(!req.user.id) {
            return res.status(403).send("User needs to be logged in to finish authentication");
        }
        
Severity: Minor
Found in js-backend/utils/middleware.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status