feat: add compatibility for fido2Credentials counter and implement no-op device token update handler

This commit is contained in:
shuaiplus
2026-02-23 23:29:00 +08:00
parent 2226bdd9ef
commit 431cc0d5d7
4 changed files with 55 additions and 1 deletions
+2
View File
@@ -3,6 +3,7 @@ import { StorageService } from '../services/storage';
import { errorResponse } from '../utils/response';
import { generateUUID } from '../utils/uuid';
import { LIMITS } from '../config/limits';
import { normalizeCipherLoginForCompatibility } from './ciphers';
// Bitwarden client import request format
interface CiphersImportRequest {
@@ -221,6 +222,7 @@ export async function handleCiphersImport(request: Request, env: Env, userId: st
updatedAt: now,
deletedAt: null,
};
cipher.login = normalizeCipherLoginForCompatibility(cipher.login);
cipherRows.push(cipher);
}