Pregunta de entrevista de Auth0

How would you implement authentication for a single-page application?