Skip to content

Commit 1beb343

Browse files
Fix token fetch to return after successful request (#278)
1 parent 043f632 commit 1beb343

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

schemaregistry/oauth/oauth-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class OAuthClient {
4848
try {
4949
const token = await this.client.getToken(this.tokenParams);
5050
this.token = token;
51+
return;
5152
} catch (error: any) {
5253
if (isBoom(error) && i < this.maxRetries) {
5354
const statusCode = error.output.statusCode;

0 commit comments

Comments
 (0)