Am I not understanding it? Seems there was a modern consensus that was proved wrong? I’ll just use scripture:
3 So Moses came and told the people all the words of the Lord and all the judgments. And all the people answered with one voice and said, “All the words which the Lord has said we will do.” 4 And Moses wrote all the words of the Lord. And he rose early in the morning, and built an altar at the foot of the mountain, and twelve pillars according to the twelve tribes of Israel.
Leviticus 26:46 - 46 These are the statutes and judgments and laws which the Lord made between Himself and the children of Israel on Mount Sinai by the hand of Moses.
Numbers 33:2 - Now Moses wrote down the starting points of their journeys at the command of the Lord. And these are their journeys according to their starting points:
Deuteronomy 31:9 So Moses wrote this law and delivered it to the priests, the sons of Levi, who bore the ark of the covenant of the Lord, and to all the elders of Israel.
John 1:17 - For the law was given through Moses, but grace and truth came through Jesus Christ.
John 5:41-47 (Jesus speaking) - 41 “I do not receive honor from men. 42 But I know you, that you do not have the love of God in you. 43 I have come in My Father’s name, and you do not receive Me; if another comes in his own name, him you will receive. 44 How can you believe, who receive honor from one another, and do not seek the honor that comes from the only God? 45 Do not think that I shall accuse you to the Father; there is one who accuses you—Moses, in whom you trust. 46 For if you believed Moses, you would believe Me; for he wrote about Me. 47 But if you do not believe his writings, how will you believe My words?”
John 7:21-22 - 21 Jesus answered and said to them, “I did one work, and you all marvel. 22 Moses therefore gave you circumcision (not that it is from Moses, but from the fathers), and you circumcise a man on the Sabbath.
(This establishes Moses as author of Gensis because the covenant of circumcision is established in Genesis 17)
Genesis 17:10 - 10 This is My covenant which you shall keep, between Me and you and your descendants after you: Every male child among you shall be circumcised
Ultimately, authorship is less important than content, and it is “the general consensus” that God is the author through the Holy Spirit working in men. There are many books that have unknown or contested authors. Hebrews most notably as it is the best response to Jews regarding Jesus. I will end with this:
2 Timothy 3:16 - All Scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness,
3 Peter 3:15-17 - 15 and consider that the longsuffering of our Lord is salvation—as also our beloved brother Paul, according to the wisdom given to him, has written to you, 16 as also in all his epistles, speaking in them of these things, in which are some things hard to understand, which untaught and unstable people twist to their own destruction, as they do also the rest of the Scriptures. 17 You therefore, beloved, since you know this beforehand, beware lest you also fall from your own steadfastness, being led away with the error of the wicked;