mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
fix EncString serialization issues & various fixes
Co-authored-by: Matt Gibson <MGibson1@users.noreply.github.com>
This commit is contained in:
@@ -506,7 +506,7 @@ export class CryptoService implements CryptoServiceAbstraction {
|
||||
pinProtectedUserSymKey?: EncString
|
||||
): Promise<UserSymKey> {
|
||||
pinProtectedUserSymKey ||= await this.stateService.getUserSymKeyPin();
|
||||
if (pinProtectedUserSymKey) {
|
||||
if (!pinProtectedUserSymKey) {
|
||||
throw new Error("No PIN protected key found.");
|
||||
}
|
||||
const pinKey = await this.makePinKey(pin, salt, kdf, kdfConfig);
|
||||
|
||||
Reference in New Issue
Block a user