Skip to content

Commit

Permalink
🎨 Clear cookies from dio after logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 18, 2020
1 parent 44a25c3 commit 5f028ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils/data_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class DataUtils {
NetUtils.postWithCookieSet(API.logout).whenComplete(() {
NetUtils.dio.clear();
NetUtils.tokenDio.clear();
NetUtils.cookieJar.deleteAll();
NetUtils.tokenCookieJar.deleteAll();
clearLoginInfo();
});
showToast('退出登录成功');
Expand Down

0 comments on commit 5f028ce

Please sign in to comment.