auth need not ask for db and typesService externally