Skip to content

Commit

Permalink
Fix authentication client logout function to guard against null
Browse files Browse the repository at this point in the history
  • Loading branch information
KidkArolis committed May 2, 2019
1 parent 8f44a24 commit 889fcd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/authentication-client/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class AuthenticationClient {
}

logout () {
return this.app.get('authentication')
return Promise.resolve(this.app.get('authentication'))
.then(() => this.service.remove(null))
.then((authResult: AuthenticationResult) => this.removeAccessToken()
.then(() => this.reset())
Expand Down

0 comments on commit 889fcd7

Please sign in to comment.