bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
9k stars 1.18k forks source link

Mac OS BitWarden loses "Unlock With Touch ID" option after screen lock. #7150

Open 0xhaggis opened 9 months ago

0xhaggis commented 9 months ago

Steps To Reproduce

  1. Open BitWarden on MacBook.
  2. Unlock BW with Touch ID.
  3. Close laptop lid to lock computer.
  4. Open laptop lid and unlock computer.
  5. Look at BW's unlock screen. The "Unlock with Touch ID" button will have disappeared.

Expected Result

I'd be presented with the option to unlock my vault with Touch ID.

Actual Result

The "Unlock with Touch ID" button has disappeared.

Screenshots or Videos

No response

Additional Context

As a workaround I can do this to bring the button back:

Either:

Or:

Operating System

macOS

Operating System Version

Ventura 13.6

Installation method

Mac App Store

Build Version

Version 2023.10.1 Shell 25.9.1 Renderer 114.0.5735.289 Node 18.15.0 Architecture x64

Issue Tracking Info

emikaadeo-git commented 9 months ago

Hi @thomasync !

do you think your PR will also solve this issue ?

emikaadeo-git commented 9 months ago

Hi @0xhaggis !

I think you should update subject of this bug. I've just checked and the issue only appears when I put my MacBook to sleep (closing the lid for example) When I only lock the screen (using Control + Cmd + Q shortcut for example) and then unlock, the "Unlock with Touch ID" button is still there.

sammbw commented 8 months ago

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you have more information that can help us, please add it below.

Thanks!

jhardyua commented 8 months ago

I experience this issue frequently. I'm happy to provide more information to help reproduce the issue. What information would help?

tpjasper commented 7 months ago

I'm also seeing this behaviour frequently. The question is: Once touch ID is set up to 'unlock with Touch ID', are there circumstances where it will require you to use the master password instead?

biolca commented 7 months ago

I'm also seeing this behaviour frequently. Close and re-open the BitWarden app makes the "Unlock with Touch ID" button appears again. I'm using an Intel based MacBook Pro 2020 with MacOS Sonoma.

AshenPaladin commented 6 months ago

Likewise I am seeing the issue at least once every few days. Closing and reopening the app makes the "Unlock with Touch ID" button appear again, but this is frustrating - as the entire reason of using biometrics, aside from security, is the ease of use compared to having to type in anything.

I'm using an Apple Silicon based MacBook Pro 2021 with macOS Sonoma 14.3.1, and the Bitwarden app version is 2024.2.0 (20587).

rallyemax commented 5 months ago

I also see this behavior. It happens every time the device is locked by closing the lid. It has not been resolved by #6134.

I found a quicker way to get Touch ID working again: select "Lock all vaults" from the Bitwarden menu (or use the ⌘L shortcut). Paradoxically, this immediately shows not only the "Unlock with Touch ID" button, but actively prompts for a finger press.

It feels like the system going to sleep via lid close puts the Bitwarden app in some strange intermediate locked state.

Bitwarden version 2024.3.0 (21897). macOS version 14.3.1 (Sonoma).

alroberts commented 5 months ago

So, to add to this.. it seems to be the result of the "disconnect" of Touch ID. For me, I am using a Magic Keyboard with Touch ID on my Mac Mini and if I disconnect the keyboard (as sometimes I plug it in via USB directly on another system) then the secure connection between Touch ID is lost.

However, all Touch ID authentication services, such as macOS Preferences panes etc.. are fine after the keyboard reconnects.. but BitWarden appears to require an entire restart for it to start checking whether Touch ID functionality has been restored on the macOS client.

I suppose something similar happens when closing the lid of a laptop.

AshenPaladin commented 4 months ago

That might be it, but it's still odd that it happens because no other programs that I'm using and that have biometric authentication have this issue. But it really should be solved because it defeats the entire purpose of using biometric authentication in the first place - convenience.

floco commented 4 months ago

Same here. What is strange is that it worked in the past. Not sure if it started to happen after an upgrade of the app or a change on a server side (I'm selfhosting)... Thanks for mentionning the ⌘L trick. This is already better than having to type the password or restarting the app.

gdurys commented 3 months ago

I reproduce this bug on macOS with version 2024.5.0 when vault timeout is set to "on system lock".

robwhess commented 3 months ago

Just to add more support for the issue, I'm also experiencing this under the same conditions as @gdurys. The ⌘L workaround by @rallyemax works for me.

florian-klemt commented 3 months ago

Same issue

EpicVoyage commented 3 months ago

Attaching a screenshot in case it helps with troubleshooting. "Lock all vaults" does seem to work around this issue to restore the "Unlock with Touch ID" button.

Screenshot 2024-06-07 at 8 55 16 AM
Berzerker commented 2 months ago

I'm also experiencing the same issue

c0d3rman commented 2 months ago

Same issue for me, only in the last few weeks

cryptedx commented 2 months ago

I have the same issue.

umerf52 commented 2 months ago

Facing the same issue as well. macOS: 14.5 (23F79) Bitwarden: 2024.6.2 (25599)

iamironz commented 2 months ago

Faced the same issue

Grinchii commented 2 months ago

Same for me.

martinjgrunwald commented 2 months ago

I have the same issue

AlmogBaku commented 2 months ago

Same for me

ccarner commented 1 month ago

+1 also experiencing

e-mts commented 1 month ago

Same issue

nhhai commented 1 month ago

Same issue. Pressing Cmd + L like the suggestion above helped.

Omi0 commented 1 month ago

Same issue. Pressing Cmd + L like the suggestion above helped.

It really helped. This issue was bugging me for a while. It needs to be fixed.

Mac: M2, 2022, 14.5 (23F79) Bitwarten: 2024.6.4 (26239)