It appears you were correct, I needed to handle the error in my application. Also, I was missing the redirect_uri
parameter from the .loginWithRedirect()
method in authGaurd.js
:
authService.loginWithRedirect({
appState: { targetUrl: to.fullPath },
redirect_uri: 'https://localhost:8080/error',
});