Skip to content

Commit

Permalink
web: add noop fallback methods in storage
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Dec 24, 2024
1 parent 6e8610c commit bc3e7c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/web/src/interfaces/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,17 @@ export class NNStorage implements IStorage {
return key;
}
}

// noop
generateCryptoKeyFallback(
password: string,
salt?: string
): Promise<SerializedKey> {
return this.generateCryptoKey(password, salt);
}

// noop
async deriveCryptoKeyFallback(): Promise<void> {}
}

const dec = new TextDecoder();
Expand Down

0 comments on commit bc3e7c6

Please sign in to comment.