resetSecret method

Future<void> resetSecret()

(Optional) Reset secret — useful for testing or revocation.

Implementation

Future<void> resetSecret() async {
  await _storage.delete(key: _secretKey);
  _cachedSecret = null;
  log('Debug Overlay TOTP secret reset.');
}