Auth0 interview question

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