1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

Merge remote-tracking branch 'origin' into auth/pm-14943/auth-request-extension-dialog-approve

This commit is contained in:
Patrick Pimentel
2025-09-03 10:18:35 -04:00
2 changed files with 4 additions and 1113 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -78,9 +78,7 @@ export class SignalRConnectionService {
return new Observable<SignalRNotification>((subsciber) => {
const connection = this.hubConnectionBuilderFactory()
.withUrl(notificationsUrl + "/hub", {
accessTokenFactory: async () => {
return this.apiService.getActiveBearerToken(userId);
},
accessTokenFactory: () => this.apiService.getActiveBearerToken(userId),
skipNegotiation: true,
transport: HttpTransportType.WebSockets,
})
@@ -138,12 +136,9 @@ export class SignalRConnectionService {
});
// Start connection
connection
.start()
.then(() => {})
.catch(() => {
scheduleReconnect();
});
connection.start().catch(() => {
scheduleReconnect();
});
return () => {
// Cancel any possible scheduled reconnects