Skip to content

Commit

Permalink
Merge pull request #45 from SEbbaDK/client-fix-broken-login
Browse files Browse the repository at this point in the history
client: Make sure apis are destroyed when logging out
  • Loading branch information
SEbbaDK authored May 23, 2021
2 parents 1cddfae + e86885b commit 1c3df6a
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 1c3df6a

Please sign in to comment.