mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-03 15:47:52 +03:00
Merge PR #1674
This commit is contained in:
commit
711174158c
@ -186,8 +186,13 @@ class Ctap2Node(RpcNode):
|
|||||||
try:
|
try:
|
||||||
self.ctap.reset(event=event)
|
self.ctap.reset(event=event)
|
||||||
except CtapError as e:
|
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 InactivityException()
|
||||||
|
raise
|
||||||
self._info = self.ctap.get_info()
|
self._info = self.ctap.get_info()
|
||||||
self._token = None
|
self._token = None
|
||||||
return RpcResponse(dict(), ["device_info"])
|
return RpcResponse(dict(), ["device_info"])
|
||||||
|
Loading…
Reference in New Issue
Block a user