[Coldbox 6.8] How to Ensure ApplicationHelper Mixins Are Available in Interceptors?

I’ve run into an issue where calling application helper mixins within interceptor methods throws an error. For example, cbAuth registers the auth() method globally. However, when I try to call it in the preProcess() interception method, I get an error “No matching function [AUTH] found”

image

To make things even weirder, sometimes the mixin does work in other interceptor methods. My guess is that this must be some type of chicken/egg problem where the mixin isn’t loaded yet by the time the interceptor method gets called.

I can bypass the problem by getting the instance from Wirebox directly, but it would be great to be able to somehow prioritize mixin loading before interceptors fire. Is this possible? Or perhaps there’s a better way to go about working in interceptors?

Non-Working Example:

function preProcess( event, interceptData, buffer, rc, prc ) {
    auth();
}

Workaround Example:

function preProcess( event, interceptData, buffer, rc, prc ) {
    wirebox.getInstance( "authenticationService@cbAuth" );
}