Skip to content

Conversation

@jmgasper
Copy link
Contributor

No description provided.

@jmgasper jmgasper merged commit e8fe599 into develop Nov 17, 2025
4 checks passed
};
const authMw = authenticator(_.pick(config, ["AUTH_SECRET", "VALID_ISSUERS"]));
let finished = false;
const bailoutTimer = setTimeout(() => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ performance]
The use of a fixed timeout of 8000ms for the bailout timer in the authentication middleware may not be suitable for all environments and could lead to unexpected behavior if the authentication process takes longer. Consider making this timeout configurable or ensuring it is appropriate for the expected load and performance characteristics of the system.

}
actions.push(method);

actions.push(async (req, res, next) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The actions.push(async (req, res, next) => {...}) block assumes that the method function returns a promise if it is asynchronous. Ensure that all controller methods are consistently returning promises if they perform asynchronous operations, otherwise, this could lead to unhandled promise rejections or incorrect logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants