Browse Source
When approving a login-with-device request, `nt.send_auth_response()` broadcasts an AuthRequestResponse (type 16) through the authenticated WebSocket hub to all user devices, including the approving device itself. This causes a duplicate notification on Android. The official Bitwarden server only sends AuthRequestResponse through the anonymous hub (keyed by auth_request_id), which correctly reaches only the requesting device. The authenticated hub is not used for this notification type. Remove the authenticated WebSocket broadcast from send_auth_response, keeping only the push relay call as a fallback for devices not connected via WebSocket. The anonymous hub (ant.send_auth_response) already handles WebSocket delivery to the requesting device. Fixes #6788pull/6935/head
1 changed files with 5 additions and 9 deletions
Loading…
Reference in new issue