destroy static method

Future<void> destroy()

Implementation

static Future<void> destroy() async {
  _tokenCache = null;
  try {
    await _secure.delete(key: _kSecureToken);
  } catch (_) {/* ignore */}
  final keys = _p.getKeys().where((k) => k.startsWith('wt_session_')).toList();
  for (final key in keys) {
    await _p.remove(key);
  }
}