Does anyone know how Covid antibodies are passed to the baby?

My doctor tested me for antibodies and it was positive and the nurse who read me the results said the baby has antibodies too now. Does that mean they’ll be born with them? I’m only 13 weeks so wouldn’t they fade out before the baby is born?