logout method

void logout()

Implementation

void logout() {
  isLogin.value = false;
  prefs.write("location", "");
  prefs.write("state", "");
  prefs.write("token", "");
  User.updatePrefs(User());
}