mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 09:41:32 +03:00
CTAP: Handle expired PIN token
This commit is contained in:
parent
9834672f67
commit
bb00b2c65e
@ -91,6 +91,14 @@ class Ctap2Node(RpcNode):
|
||||
self.client_pin = ClientPin(self.ctap)
|
||||
self._token = None
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
try:
|
||||
return super().__call__(*args, **kwargs)
|
||||
except CtapError as e:
|
||||
if e.code == CtapError.ERR.PIN_AUTH_INVALID:
|
||||
raise AuthRequiredException()
|
||||
raise
|
||||
|
||||
def get_data(self):
|
||||
self._info = self.ctap.get_info()
|
||||
logger.debug(f"Info: {self._info}")
|
||||
|
Loading…
Reference in New Issue
Block a user