Modified auth modules to work with the api