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.
loggedIn
1 parent 0f32bb5 commit aa5f29dCopy full SHA for aa5f29d
lib/schemes/local.js
@@ -71,17 +71,17 @@ export default class LocalScheme {
71
}
72
73
async fetchUser (endpoint) {
74
+ // Token is required but not available
75
+ if (this.options.tokenRequired && !this.$auth.getToken(this.name)) {
76
+ return
77
+ }
78
+
79
// User endpoint is disabled.
80
if (!this.options.endpoints.user) {
81
this.$auth.setUser({})
82
return
83
84
- // Token is required but not available
- if (this.options.tokenRequired && !this.$auth.getToken(this.name)) {
- return
- }
-
85
// Try to fetch user and then set
86
const user = await this.$auth.requestWith(
87
this.name,
0 commit comments