CommiteDev / Commite-auth-service

Use const declarations for variables that are never reassigned JS-0242
Anti-pattern
Minor
2 occurrences in this check
'token' is never reassigned. Use 'const' instead
105        id: user.userid,
106      },
107    }
108    let token = jwt.sign({ payload }, secretKey, {109      expiresIn: expiresIn,
110    });
111    return responseMsg(200, 'OK', 'User logged in successfully', token)
'token' is never reassigned. Use 'const' instead
 56        id: userId,
 57      },
 58    }
 59    let token = jwt.sign({ payload }, secretKey, { 60      expiresIn: expiresIn,
 61    });
 62    return responseMsg(200, 'OK', 'User created successfully', token)