Building Scalable Authentication: From Monolith to Millions of Users