You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, the problem is that when some error happens during $auth.init().
In this case _errorListeners is not yet populated, so there's no way to intercept this error.
In my case this is token expiration error from one of the oauth providers.
How about providing any mechanism to handle errors during init()?
This feature request is available on Nuxt community (#c177)
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Currently the suggested way to bind your own error hooks is by defining a custom plugin:
And then extending the auth config like so:
But, the problem is that when some error happens during
$auth.init()
.In this case
_errorListeners
is not yet populated, so there's no way to intercept this error.In my case this is token expiration error from one of the
oauth
providers.How about providing any mechanism to handle errors during
init()
?The text was updated successfully, but these errors were encountered: