Fixes npe and return type of auth.run()