deleteAllData static method
Deletes all the data stored locally by the Nevis Mobile Authentication SDK.
Contrary to deleteAuthenticator, this method does not require a successfully initialized MobileAuthenticationClient. It can be invoked at any time, even when the SDK could not be initialized, which makes it suitable as a recovery mechanism to reset the SDK to a clean state.
NOTE
This method only deletes data locally: it does not contact the server, hence
the FIDO UAF credentials are not deleted from the server. This method should
only be used when going through the SDK operations is not possible, for
instance when the SDK cannot be initialized.
Implementation
static Future<void> deleteAllData() async {
try {
final operationId = const Uuid().v4();
await NevisMobileAuthenticationSdkPlatform.instance.localData
.deleteAllData(operationId);
} on PlatformException catch (platformException) {
throw platformException.toSdkException();
}
}