authenticator-rs icon indicating copy to clipboard operation
authenticator-rs copied to clipboard

Detect if no devices are connected and send a StatusUpdate accordingly.

Open msirringhaus opened this issue 1 year ago • 2 comments

Try to fix #312

This is not working for macOS, as I have no idea how to get the already plugged in devices (and if none are plugged in, an empty list) on that platform.

Upon start, we make the Monitor send DevicesAdded with an empty list, to let the DeviceSelector know we are starting and have no device yet. Then whenever devices are removed (either by sending NotAToken or being physically plugged out), we check if it was the last one. If so, we send the StatusUpdate accordingly.

msirringhaus avatar Oct 23 '23 11:10 msirringhaus

Unfortunately I don't think we can accept this until we have a solution for macOS (Firefox is going to stick with auth-rs for security keys on macOS for the foreseeable future). Should I try to find someone who can help us debug the macOS issue?

jschanck avatar Nov 17 '23 23:11 jschanck

Unfortunately I don't think we can accept this until we have a solution for macOS (Firefox is going to stick with auth-rs for security keys on macOS for the foreseeable future). Should I try to find someone who can help us debug the macOS issue?

Sorry, it totally missed the question in there, and read it as a statement. Yes, it would be great if you could find somebody who knows the macOS SDK and how things work there.

msirringhaus avatar Feb 26 '24 12:02 msirringhaus