msal-flutter
msal-flutter copied to clipboard
Missing return statements after calls to result in SwiftMsalFlutterPlugin.swift
for example
at line 82, change:
catch{
result(FlutterError(code: "NO_ACCOUNT", message: "Error retrieving an existing account", details: nil))
}
to
catch{
result(FlutterError(code: "NO_ACCOUNT", message: "Error retrieving an existing account", details: nil))
return
}
this code is only run when the keychain is not setup correctly and results in a crash
there are many other calls to result without returns following them