Skip to content

Commit

Permalink
Restrict new SiwA enum case to iOS for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tp committed Sep 23, 2021
1 parent 7c7d4d2 commit a46cc9b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public enum SignInWithAppleError {
errorCode = "authorization-error/notHandled"
case .failed:
errorCode = "authorization-error/failed"
#if os(iOS) && swift(>=5.5)
// new case since Xcode 13, but only on iOS SDK at the moment
case .notInteractive:
errorCode = "authorization-error/notInteractive"
#endif
@unknown default:
print("[SignInWithApplePlugin]: Unknown authorization error code: \(code)");
}
Expand Down

0 comments on commit a46cc9b

Please sign in to comment.