[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;
|
||||
case NotificationType.SyncOrgKeys:
|
||||
if (isAuthenticated) {
|
||||
await this.apiService.refreshIdentityToken();
|
||||
await this.syncService.fullSync(true);
|
||||
// Stop so a reconnect can be made
|
||||
await this.signalrConnection.stop();
|
||||
|
|
|
@ -94,6 +94,7 @@ export class SyncService implements SyncServiceAbstraction {
|
|||
|
||||
const userId = await this.userService.getUserId();
|
||||
try {
|
||||
await this.apiService.refreshIdentityToken();
|
||||
const response = await this.apiService.getSync();
|
||||
|
||||
await this.syncProfile(response.profile);
|
||||
|
|
Loading…
Reference in New Issue