streetmix/streetmix

View on GitHub
app/controllers/refresh_login_token.js

Summary

Maintainability
A
1 hr
Test Coverage

Function post has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function post (req, res) {
  if (!req.body || !req.body.token) {
    res.status(401).json({ status: 401, msg: 'Refresh token is required.' })
    return
  }
Severity: Minor
Found in app/controllers/refresh_login_token.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status