Skip to content

Commit

Permalink
Fix: No sync metadata if manual sync is true
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Jun 12, 2024
1 parent 2bd11ad commit c981178
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class ThresholdKey implements ITKey {
const tempStateManualSync = this.manualSync;
this.manualSync = true;
await this._initializeNewKey({ initializeModules: true, importedKey: this.serviceProvider.migratableKey, delete1OutOf1: true });
await this.syncLocalMetadataTransitions();
if (!tempStateManualSync) await this.syncLocalMetadataTransitions(); // Only sync if we were not in manual sync mode
// restore manual sync flag
this.manualSync = tempStateManualSync;
} else {
Expand Down
2 changes: 0 additions & 2 deletions packages/service-provider-sfa/src/SfaServiceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class SfaServiceProvider extends ServiceProviderBase {
if (params.serverTimeOffset) {
this.authInstance.serverTimeOffset = params.serverTimeOffset;
}
// Does the key assign
// if (this.authInstance.isLegacyNetwork) await this.authInstance.getPublicAddress(torusNodeEndpoints, torusNodePub, { verifier, verifierId });

let finalIdToken = idToken;
let finalVerifierParams = { verifier_id: verifierId };
Expand Down

0 comments on commit c981178

Please sign in to comment.