Skip to content

Commit

Permalink
client: Make sure apis are destroyed when logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
SEbbaDK committed May 23, 2021
1 parent 1cddfae commit e86885b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/lib/login_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class LoginHandler extends ChangeNotifier {

logout() {
_userId = null;
_osmApi = null;
_mtApi = null;
prefs().setString('accessToken', '');
prefs().setString('accessSecret', '');
notifyListeners();
Expand Down

0 comments on commit e86885b

Please sign in to comment.