cozy-labs/cozy-desktop

View on GitHub
dev/remote/automated_registration.js

Summary

Maintainability
A
1 hr
Test Coverage

Function login has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const login = async (cozyUrl, passphrase) => {
  const { csrf_token, salt, iterations } = await _getLoginInfo(cozyUrl)
  log.debug({ csrf_token }, 'Login...')
  if (!csrf_token) {
    log.debug('Already logged in. Skipping login')
Severity: Minor
Found in dev/remote/automated_registration.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status