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 1dfa96611a
commit 08114762bc
4 changed files with 55 additions and 1 deletions
+16
View File
@@ -40,3 +40,19 @@ export async function handleGetDevices(request: Request, env: Env, userId: strin
});
}
// PUT /api/devices/identifier/{deviceIdentifier}/token
// Bitwarden mobile reports push token updates to this endpoint.
// NodeWarden does not implement push notifications, so accept and no-op.
export async function handleUpdateDeviceToken(
request: Request,
env: Env,
userId: string,
deviceIdentifier: string
): Promise<Response> {
void request;
void env;
void userId;
void deviceIdentifier;
return new Response(null, { status: 200 });
}