We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a7647 commit f079ae2Copy full SHA for f079ae2
1 file changed
lib/core/auth.js
@@ -35,6 +35,16 @@ export default class Auth {
35
// Restore strategy
36
this.$storage.syncUniversal('strategy', this.options.defaultStrategy)
37
38
+ // Set default strategy if current one is invalid
39
+ if (!this.strategy) {
40
+ this.$storage.setUniversal('strategy', this.options.defaultStrategy)
41
+
42
+ // Give up if still invalid
43
44
+ return Promise.resolve()
45
+ }
46
47
48
// Call mounted for active strategy on initial load
49
return this.mounted()
50
}
0 commit comments