Skip to content

Commit

Permalink
chore: return promise from fetchToken
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Nov 20, 2024
1 parent f0c0a51 commit 199c230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth_strategy/TokenAuthStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class TokenAuthStrategy extends AuthStrategy {
) {
return this.tokenManager.fetchToken();
}
return this.token;
return Promise.resolve(this.token);
}

/**
Expand Down

0 comments on commit 199c230

Please sign in to comment.