Skip to content

Commit

Permalink
fix(web): changing auth check to call check session
Browse files Browse the repository at this point in the history
  • Loading branch information
rallieon committed Sep 16, 2021
1 parent 0bfc0bb commit 94a24cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web/src/api/hasteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ export class HasteClient {
return await this.auth0Client.getTokenSilently();
}

public async isAuthenticated() {
return await this.auth0Client.isAuthenticated();
public async isAuthenticated(): Promise<boolean> {
await this.auth0Client.checkSession({});
return this.auth0Client.isAuthenticated();
}

public async loginWithRedirect() {
Expand Down

0 comments on commit 94a24cd

Please sign in to comment.