if (this.isBasicAuthEnabled() === true) {
if (this.isValidBasicAuth(req) === false) {
next(new Error('Unauthorized'));
} else {
if (this.isBasicAuthEnabled() === true) {
if (this.isValidBasicAuth(req) === false) {
next(new Error('Unauthorized'));
} else {