authWithPassword remove use of setTimeout