diff --git a/lib/core/auth.js b/lib/core/auth.js index a27e4ce40..f6931de38 100644 --- a/lib/core/auth.js +++ b/lib/core/auth.js @@ -23,6 +23,13 @@ export default class Auth { } async init () { + // Reset on error + if (this.options.resetOnError) { + this.onError(() => { + this.reset() + }) + } + // Restore strategy this.$storage.syncUniversal('strategy', this.options.defaultStrategy)