remove authentication in production mode for handler