1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-23072] Remove legacy key support in auth code (#15350)

* Remove legacy key support in auth code

* Fix tests
This commit is contained in:
Bernd Schoolmann
2025-07-23 22:29:44 +02:00
committed by GitHub
parent 4458a7306b
commit 7a24a538a4
3 changed files with 1 additions and 38 deletions

View File

@@ -325,7 +325,7 @@ export abstract class LoginStrategy {
protected async createKeyPairForOldAccount(userId: UserId) {
try {
const userKey = await this.keyService.getUserKeyWithLegacySupport(userId);
const userKey = await this.keyService.getUserKey(userId);
const [publicKey, privateKey] = await this.keyService.makeKeyPair(userKey);
if (!privateKey.encryptedString) {
throw new Error("Failed to create encrypted private key");