We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b58ca17 commit e2ebd97Copy full SHA for e2ebd97
lib/templates/auth.class.js
@@ -330,8 +330,8 @@ export default class Auth {
330
this.ctx.redirect(to)
331
}
332
333
- hasScope (scope) {
334
- const userScopes = getProp(this.state.user, this.options.scopeKey)
+ hasScope(scope) {
+ const userScopes = this.state.user && getProp(this.state.user, this.options.scopeKey)
335
336
if (!userScopes) {
337
return
0 commit comments