lib/auth/authenticate_request.js
Function middleware
has 41 lines of code (exceeds 30 allowed). Consider refactoring. Open
Open
middleware () {
const self = this;
return async function (ctx, next) {
let promise;
if (ctx.headers['x-auth-token'] && ctx.headers['x-auth-client']) {