Skip to content
Permalink
Browse files
fix: fix scope checks during logout
  • Loading branch information
Pooya Parsa committed Feb 4, 2018
1 parent b58ca17 commit e2ebd9785e45b9fe79fa69d3316a2a696026bb92
Showing 1 changed file with 2 additions and 2 deletions.
@@ -330,8 +330,8 @@ export default class Auth {
this.ctx.redirect(to)
}

hasScope (scope) {
const userScopes = getProp(this.state.user, this.options.scopeKey)
hasScope(scope) {
const userScopes = this.state.user && getProp(this.state.user, this.options.scopeKey)

if (!userScopes) {
return

0 comments on commit e2ebd97

Please sign in to comment.