If the Bible is written by different authors, how was the church able to identify the writings that are truly inspired by God?

NONSENSE ANSWER = REPORT​