COVIDSafe code from version 2.4 (#47)

This commit is contained in:
COVIDSafe Support 2021-03-18 14:16:35 +11:00 committed by covidsafe-support
parent e577a9e7aa
commit 1478088e19
40 changed files with 1125 additions and 657 deletions

View file

@ -28,8 +28,7 @@ class PhoneValidationAPI {
CovidNetworking.shared.session.request("\(apiHost)/initiateAuth",
method: .post,
parameters: params,
encoding: JSONEncoding.default,
interceptor: CovidRequestRetrier(retries:3)).validate().responseDecodable(of: AuthResponse.self) { (response) in
encoding: JSONEncoding.default).validate().responseDecodable(of: AuthResponse.self) { (response) in
switch response.result {
case .success:
guard let authResponse = response.value else { return }