5. A line passing through the right focus of the hyperbola $x ^ { 2 } - \frac { y ^ { 2 } } { 3 } = 1$ and perpendicular to the $x$-axis intersects the two asymptotes of the hyperbola at points $\mathrm { A }$ and $\mathrm { B }$, then $| A B | =$\\
(A) $\frac { 4 \sqrt { 3 } } { 3 }$\\
(B) $2 \sqrt { 3 }$\\
(C) $6$\\
(D) $4 \sqrt { 3 }$