Skip to content

Commit

Permalink
fix: Guard against null in client side logout function (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
KidkArolis authored and daffl committed May 4, 2019
1 parent c2909be commit fa7f057
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 fa7f057

Please sign in to comment.