There was no consensus on what should be global human rights before 1948 that is correct.
Before that, the only rights you had, were the ones afforded to you by your lord, king, queen, emperor, president, prime minister, etc.
For a very long time, all over the world. A lot of people had, literally. No rights at all. They were used, sold, worked, as slaves.
So it's a wonderful thing that a bunch of countries came together and tried their best to determine some basic Human Rights that everyone should adhere to. Being afforded citizenship of the country you're currently inside at the time of birth. Is not one of them.
If you ever bothered to actually look into them. You might find article 15 of interest.
Everyone has the right to a nationality.
No one shall be arbitrarily deprived of his nationality nor denied the right to change his nationality
You have the Human Right to belong to a nation. But it does not stipulate which nation. Nor how you acquire the nationality. Some countries have it as the place where you were physically born. Others have it as an extension of your parents nationality.
I could explain this further if you so wish. But I doubt you'd care for it. In any case. What you personally think should and shouldn't be a human right, won't change the status of the actual Human Rights. Just like what you personally think should and shouldn't be legal in your country, won't change the status of the laws currently put in place.