Fixed constant to use the one defined from upstream. Need to merge
generateApiKey and make_new_api_key at some point.