Skip to content

Commit 7e2cf80

Browse files
committed
style(client): format SSE unauthorized retry callback
1 parent 3b625e0 commit 7e2cf80

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • packages/client/src/client

packages/client/src/client/sse.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@ export class SSEClientTransport implements Transport {
163163
this._authProvider
164164
.onUnauthorized({ response, serverUrl: this._url, fetchFn: this._fetchWithInit, accumulatedScope: this._scope })
165165
.then(
166-
// onUnauthorized succeeded → retry fresh. Its onerror handles its own onerror?.() + reject.
167-
() => this._startOrAuth().then(resolve, reject),
168-
// onUnauthorized failed → not yet reported.
169-
error => {
170-
this.onerror?.(error);
171-
reject(error);
172-
}
173-
);
166+
// onUnauthorized succeeded → retry fresh. Its onerror handles its own onerror?.() + reject.
167+
() => this._startOrAuth().then(resolve, reject),
168+
// onUnauthorized failed → not yet reported.
169+
error => {
170+
this.onerror?.(error);
171+
reject(error);
172+
}
173+
);
174174
return;
175175
}
176176
const error = new UnauthorizedError();

0 commit comments

Comments
 (0)