function disableMJSCredentialPrompts()
    %disableMJSCredentialPrompts Stop interactive MJS credential prompts
    %   Disables interactive prompts for obtaining MJS credentials for
    %   this MATLAB session. If interactive prompts are disabled and the
    %   MJS credentials needed to perform an action have not been added by
    %   other means (e.g. via MJSCredentialHandler), an error is thrown.
    %
    %   NB: To ensure correct behaviour, this method should be called
    %   before any other PCT code is run within a MATLAB session. This will
    %   only affect MJS clusters created after calling this.
    %
    %   See also parallel.internal.cluster.MJSCredentialHandler

    % Copyright 2019-2021 The MathWorks, Inc.
    
    parallel.internal.cluster.defaultMJSCredentialPromptsEnabled(false);
end
