public async Task <bool> SetUserState(UserStateDTO dto) { try { string s = JsonConvert.SerializeObject(dto); await storage.SetLocalStorageValue <string>("JWT", s); } catch (Exception ex) { log.LogException(ex); return(false); } return(true); }