mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
[Provider] Refresh identity token on full sync (#437)
This commit is contained in:
parent
de288913e4
commit
e1ce721364
@ -151,7 +151,6 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
|||||||
break;
|
break;
|
||||||
case NotificationType.SyncOrgKeys:
|
case NotificationType.SyncOrgKeys:
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
await this.apiService.refreshIdentityToken();
|
|
||||||
await this.syncService.fullSync(true);
|
await this.syncService.fullSync(true);
|
||||||
// Stop so a reconnect can be made
|
// Stop so a reconnect can be made
|
||||||
await this.signalrConnection.stop();
|
await this.signalrConnection.stop();
|
||||||
|
@ -94,6 +94,7 @@ export class SyncService implements SyncServiceAbstraction {
|
|||||||
|
|
||||||
const userId = await this.userService.getUserId();
|
const userId = await this.userService.getUserId();
|
||||||
try {
|
try {
|
||||||
|
await this.apiService.refreshIdentityToken();
|
||||||
const response = await this.apiService.getSync();
|
const response = await this.apiService.getSync();
|
||||||
|
|
||||||
await this.syncProfile(response.profile);
|
await this.syncProfile(response.profile);
|
||||||
|
Loading…
Reference in New Issue
Block a user