How to catch initialization error #416
-
I provided a bad clientId to my GoogleLoginProvider to test that my application handles errors well. It seems I'm unable to catch this error and do anything meaningful with it, such as display a dialog to the user. Here's a bit of code:
And in my auth service:
An error is logged to the console, as expected, from angularx-social-login.js:217 (version 3.5.7). But it's not logged by my code, and neither the catch during signIn nor the initState observable error are being triggered. Is there some other way to retrieve this kind of error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
SocialAuthServiceConfig
has anonError
field. Can you try supplying a callback to that?