Skip to content

Commit fa7f057

Browse files
KidkArolisdaffl
authored andcommitted
fix: Guard against null in client side logout function (#1319)
1 parent c2909be commit fa7f057

File tree

1 file changed

+1
-1
lines changed
  • packages/authentication-client/src

1 file changed

+1
-1
lines changed

packages/authentication-client/src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class AuthenticationClient {
163163
}
164164

165165
logout () {
166-
return this.app.get('authentication')
166+
return Promise.resolve(this.app.get('authentication'))
167167
.then(() => this.service.remove(null))
168168
.then((authResult: AuthenticationResult) => this.removeAccessToken()
169169
.then(() => this.reset())

0 commit comments

Comments
 (0)