On iOS (and Mac Catalyst), for the authorize() function, all boolean values passed from JS (namely useNonce, usePCKE, and prefersEphemeralSession) are marshalled incorrectly into Objective-C.
The method signatures all specify (Bool *) instead of (Bool) (example), so React Native marshals both true and false (from JS) to NO (Obj-C).
Environment
Your Identity Provider: Not sure, but affects all.
Platform that you're experiencing the issue on: iOS (and Mac Catalyst)
Issue
On iOS (and Mac Catalyst), for the
authorize()
function, all boolean values passed from JS (namelyuseNonce
,usePCKE
, andprefersEphemeralSession
) are marshalled incorrectly into Objective-C.The method signatures all specify
(Bool *)
instead of(Bool)
(example), so React Native marshals bothtrue
andfalse
(from JS) toNO
(Obj-C).Environment
iOS
(andMac Catalyst
)react-native
Version:0.73.1
react-native-app-auth
Version:7.2.0
This was noticed in this issue: https://github.com/FormidableLabs/react-native-app-auth/issues/980#issuecomment-2223008235