The app will crash if authentication is not configured
KenEucker opened this issue · 1 comments
Describe the bug
If the environment variable A_DOMAIN
is not set, the application will crash as the auth0 integration is tightly coupled to components via importing { useAuth0 } from @auth0/auth0-vue
. Because of this, if authentication is not properly configured the site is at risk.
Expected behavior
The code should support a configuration where authentication is not enabled.
Additional context
One way that this can be accomplished is by overloading the useAuth0
functionality with void methods. I don't think that is how this should be done, but that is one way.
The preferred method here is to loosen up the authentication integration and provide a singular interface that swallows calls when the authentication is not configured.