f9mac/authless

View on GitHub

Showing 1 of 1 total issue

Function useBrowserWithAccount has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

async useBrowserWithAccount (accountObject, asyncFn) {
const getAccount = (conf) => {
if (conf instanceof AccountInterface) return [conf, false]
if (check.object(conf)) {
if (!(conf.account instanceof AccountInterface)) {
Severity: Minor
Found in src/authless.js - About 45 mins to fix
Severity
Category
Status
Source
Language