TNOCS/node-auth

View on GitHub
src/lib/routes/verify.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function verifyEmail has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function verifyEmail(req: Request, res: Response) {
  const id = req.params['id'];
  const token = req.query['t'];
  if (!id || !token) {
    res.status(BAD_REQUEST).json({ success: false, message: 'Please create a valid request!' });
Severity: Minor
Found in src/lib/routes/verify.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status