I went through the Quickstart SPA for Vue, but there was nothing about how to configure the router to allow/disallow certain routes based on authentication. The topic is covered in an Auth0 blog post:
but the structure of this app is completely different from the Quickstart, and instead of an AuthService, a function is defined in the router code itself.
Does anyone have an opinion on which approach is better? Is there a way to keep the structure of the Quickstart app and easily add logic to allow/disallow routes?