Fix errors in auth and config.