COVIDSafe code from version 2.4

This commit is contained in:
covidsafe-support 2021-03-17 20:13:22 -07:00
parent 377bc0009b
commit 86a09a138c
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 }