Authenticating Svelte Applications

This is a great tutorial and timely for me as I am looking at building my first Svelte app with authentication.

One suggestion: since pop-ups are problematic for so many people how about a loginWithRedirect style flow instead?