TypeScript
Initial Promise call on same line

by Benny Neugebauer

public logout(): Promise<void> {
  return this.auth.api
    .postLogout()
    .then(() => this.disconnect())
    .then(() => this.accessTokenStore.reset())
    .then(() => (this.context = undefined));
}

public logout(): Promise<void> {
  return this.auth.api.postLogout()
    .then(() => this.disconnect())
    .then(() => this.accessTokenStore.reset())
    .then(() => (this.context = undefined));
}