Pergunta de entrevista da empresa Auth0

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