Not Scripture.
The PROTEVANGELIUM is of dubious reputation.
Evidently it was written prior to the 2nd century, and prior to Constantine’s binding interpretations of Church doctrine, and unless you can show something in the canonized scriptures which contradict the story, perhaps you’ll forgive me for thinking the “Infancy Gospel of James” more accurate than your own assumptions on the matter. :)