diff --git a/DalTube/DalTube.xcworkspace/xcuserdata/guest1.xcuserdatad/UserInterfaceState.xcuserstate b/DalTube/DalTube.xcworkspace/xcuserdata/guest1.xcuserdatad/UserInterfaceState.xcuserstate index 49963b9..b559101 100644 Binary files a/DalTube/DalTube.xcworkspace/xcuserdata/guest1.xcuserdatad/UserInterfaceState.xcuserstate and b/DalTube/DalTube.xcworkspace/xcuserdata/guest1.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/DalTube/DalTube/Login/UserSignService.swift b/DalTube/DalTube/Login/UserSignService.swift index 125b99f..3051354 100644 --- a/DalTube/DalTube/Login/UserSignService.swift +++ b/DalTube/DalTube/Login/UserSignService.swift @@ -50,5 +50,10 @@ struct UserSignService { } } - + private func isValidLoginData(data: Data) -> NetworkResult { + let decoder = JSONDecoder() + guard let decodedData = try? decoder.decode(LoginResponseData.self, from: data) + else {return .pathErr} + return .success(decodedData) + } }