mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
clear data on context change
This commit is contained in:
parent
87c28e3328
commit
47e207fe1a
@ -150,6 +150,8 @@ class FidoManager(
|
||||
super.dispose()
|
||||
deviceManager.removeDeviceListener(this)
|
||||
fidoChannel.setMethodCallHandler(null)
|
||||
fidoViewModel.setSessionState(null)
|
||||
fidoViewModel.updateCredentials(listOf())
|
||||
coroutineScope.cancel()
|
||||
}
|
||||
|
||||
|
@ -214,6 +214,8 @@ class OathManager(
|
||||
deviceManager.removeDeviceListener(this)
|
||||
oathViewModel.credentials.removeObserver(credentialObserver)
|
||||
oathChannel.setMethodCallHandler(null)
|
||||
oathViewModel.setSessionState(null)
|
||||
oathViewModel.updateCredentials(mapOf())
|
||||
coroutineScope.cancel()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user