logout static method

Future<void> logout({
  1. required String tokenKey,
})

Full reset — cache + auth + cookies. Call on logout.

Implementation

static Future<void> logout({required String tokenKey}) async {
  await clearCache();
  await clearAuth(tokenKey: tokenKey);
  await CookieManager.clearAll();
}