Chocobozzz/PeerTube

View on GitHub
server/core/controllers/api/users/token.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function handleToken has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function handleToken (req: express.Request, res: express.Response, next: express.NextFunction) {
  const grantType = req.body.grant_type

  try {
    const bypassLogin = await buildByPassLogin(req, grantType)
Severity: Minor
Found in server/core/controllers/api/users/token.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status