Skip to content

Commit

Permalink
fix: use getToken
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Feb 20, 2018
1 parent 1197966 commit bec8518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/schemes/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class LocalScheme {
}

// Token is required but not available
if (this.options.tokenRequired && !this.auth.token) {
if (this.options.tokenRequired && !this.auth.getToken()) {
return Promise.resolve()
}

Expand Down

1 comment on commit bec8518

@maneja81
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing issues with laravel-echo "throws this.auth.getToken() is not a function"

Please sign in to comment.