I want to prevent my users from seeing the 'Oops something went wrong' error page when there is a callback URL mismatch.
This will happen whenever a user saves a bookmark to an internal URL in my Angular 2 SPA. I have added a number of possible internal URLs as callback URLs, and those work, but I can't do that for every possible URL.
I tried setting auth.params
for redirectUrl
, but if I set redirect = true
then it ignores my redirectUrl
and uses the original. If I set redirect = false
the login will succeed, but my app opens on the home page, not the redirectUrl
itself.
Is there some way I can intercept the something went wrong error and provide a more user-friendly message?