$$\begin{align} e^{i\theta}&=\cos\theta+i\sin\theta \\[0.5em] \left|e^{i\theta}\right|&=\sqrt{\cos^2\theta+\sin^2\theta} \end{align}$$
I get that the magnitude of $e^{i\theta}$ has to be $1$, but why does that $i$ squared become $1$? Isn't $i$ squared supposed to be $-1$?
Think about a right triangle with height $\sin \theta$ and base $\cos \theta$, the number $\cos\theta + i\sin\theta$ is the tip of the triangle in the complex plane. So to compute the hypothenuse you do the pythagorean theorem which is the formula for $\left|e^{i\theta}\right|$ you mentioned.