Skip to content

Commit

Permalink
Fix 2FA code not being requested (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
chedabob authored Mar 5, 2022
1 parent eee3416 commit dba1d3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/StoreAPI/Store/StoreResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ extension StoreResponse: Decodable {
self = .failure(error: Error.invalidCredentials)
case "An Apple ID verification code is required to sign in. Type your password followed by the verification code shown on your other devices.":
self = .failure(error: Error.codeRequired)
case "MZFinance.BadLogin.Configurator_message":
self = .failure(error: Error.codeRequired)
case "This Apple ID has been locked for security reasons. Visit iForgot to reset your account (https://iforgot.apple.com).":
self = .failure(error: Error.lockedAccount)
default:
Expand Down

0 comments on commit dba1d3b

Please sign in to comment.