Skip to content

Commit 9aeb8ca

Browse files
authored
🐛 Fix propagation of "CANCELED" error on iOS (#31)
1 parent 5573f9e commit 9aeb8ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/Classes/SwiftFlutterWebAuthPlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public class SwiftFlutterWebAuthPlugin: NSObject, FlutterPlugin {
2121

2222
if let err = err {
2323
if #available(iOS 12, *) {
24-
if case ASWebAuthenticationSessionError.Code.canceledLogin = err {
24+
if case ASWebAuthenticationSessionError.canceledLogin = err {
2525
result(FlutterError(code: "CANCELED", message: "User canceled login", details: nil))
2626
return
2727
}
2828
} else {
29-
if case SFAuthenticationError.Code.canceledLogin = err {
29+
if case SFAuthenticationError.canceledLogin = err {
3030
result(FlutterError(code: "CANCELED", message: "User canceled login", details: nil))
3131
return
3232
}

0 commit comments

Comments
 (0)