async function enableDisableAuth(config, models) {
  if (config.get('authDisabled')) {
    appLog.info('Enabling authDisabled "authentication" strategy.');

    const noAuthUser = getNoAuthUser(config);

    // Try to find existing user in SQLPad's backing db
    // This tries to find a match on both id and email, with id taking priority
    let existingUser = await models.users.findOneById(noAuthUser.id);
    if (!existingUser) {
      await models.users.create(noAuthUser);
    } else if (
      existingUser.name !== noAuthUser.name ||
      existingUser.role !== noAuthUser.role ||
      existingUser.email !== noAuthUser.email
    ) {
      const { id, ...updates } = noAuthUser;
      await models.users.update(id, updates);
    }

    passport.use('disable-auth', new CustomStrategy(disableAuthStrategy));
  }
}
Adds auth proxy strategy if configured
Adds a noauth user to users table if it does not yet exist
@param {object} config
@param {import('../models')} models