Skip to content

Commit 0b490cf

Browse files
danilonetoCopilot
andauthored
Update src/SignalR/clients/ts/signalr/src/AccessTokenHttpClient.ts
Co-authored-by: Copilot <[email protected]>
1 parent f88b82c commit 0b490cf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/SignalR/clients/ts/signalr/src/AccessTokenHttpClient.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ export class AccessTokenHttpClient extends HttpClient {
6565
}
6666

6767
private async _refreshTokenAndRetry(request: HttpRequest, original: HttpResponse | Error): Promise<HttpResponse> {
68-
if (!this._accessTokenFactory) {
69-
if (original instanceof HttpResponse) {
70-
return original;
71-
}
72-
throw original;
73-
}
74-
7568
const newToken = await this._accessTokenFactory();
7669
if (!newToken) {
7770
if (original instanceof HttpResponse) {

0 commit comments

Comments
 (0)