mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 17:51:29 +03:00
Handle timed out FIDO reset on older keys
This commit is contained in:
parent
94cde7398c
commit
ef3a663b88
@ -186,8 +186,13 @@ class Ctap2Node(RpcNode):
|
||||
try:
|
||||
self.ctap.reset(event=event)
|
||||
except CtapError as e:
|
||||
if e.code == CtapError.ERR.USER_ACTION_TIMEOUT:
|
||||
if e.code in (
|
||||
# Different keys respond with different errors here
|
||||
CtapError.ERR.USER_ACTION_TIMEOUT,
|
||||
CtapError.ERR.ACTION_TIMEOUT,
|
||||
):
|
||||
raise InactivityException()
|
||||
raise
|
||||
self._info = self.ctap.get_info()
|
||||
self._token = None
|
||||
return RpcResponse(dict(), ["device_info"])
|
||||
|
Loading…
Reference in New Issue
Block a user