Skip to content

Commit

Permalink
fixup! refactor(http): separate auth management from client
Browse files Browse the repository at this point in the history
  • Loading branch information
seth2810 committed Jul 28, 2024
1 parent 705b9a6 commit 0a1f45b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/http/AuthManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export class AuthManager {

// refresh token
if (
this.config?.clientCredentials?.clientId &&
this.config?.clientCredentials?.clientSecret &&
this.config?.refreshToken
this.config.clientCredentials?.clientId &&
this.config.clientCredentials?.clientSecret &&
this.config.refreshToken
) {
const accessToken = await this.refreshToken();

Expand All @@ -153,7 +153,7 @@ export class AuthManager {
}

// add credentials flow
if (this.config?.clientCredentials?.clientId && this.config?.clientCredentials?.clientSecret) {
if (this.config.clientCredentials?.clientId && this.config.clientCredentials?.clientSecret) {
const accessToken = await this.requestToken();

this.config.accessToken = accessToken;
Expand Down

0 comments on commit 0a1f45b

Please sign in to comment.