Skip to content

Commit a2da3a4

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/auth.js

Lines changed: 1 addition & 1 deletion
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)