reset method
Forget the device key and token (e.g. on sign-out of a shared device). The next call creates and attests a brand-new key.
Implementation
Future<void> reset() async {
_refreshTimer?.cancel();
_token = null;
_key = null;
await NexusPlatform.instance.shieldDeleteKey(_alias);
await NexusPlatform.instance.shieldAppAttestReset();
final p = await SharedPreferences.getInstance();
await p.remove(_prefToken);
}