Auth0 Interview Question

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