Future<void> setSession(Session session) async { await _writeSessionToLocalStorage(session, _prefs); _session = session; }