Skip to content

Commit a2da3a4

Browse files
committed
fix(core): always return boolean form hasScope
1 parent a7bbd8d commit a2da3a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/auth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export default class Auth {
387387
const userScopes = this.$state.user && getProp(this.$state.user, this.options.scopeKey)
388388

389389
if (!userScopes) {
390-
return undefined
390+
return false
391391
}
392392

393393
if (Array.isArray(userScopes)) {

0 commit comments

Comments
 (0)