fix(ios): qualify enum cases for newer Swift compilers#1467
fix(ios): qualify enum cases for newer Swift compilers#1467subhankarmaiti merged 2 commits intoauth0:masterfrom
Conversation
|
Thanks for opening the PR @ThnxFredrik |
aaf73c6 to
537165b
Compare
Fixed in fix(ios): qualify enum cases for newer Swift compilers |
|
Hi @ThnxFredrik |
b878bb1 to
485828d
Compare
There we go, took a while 😅 but now both commits should be verified 👍🏼 |


Changes
This change updates
ios/NativeBridge.swiftto explicitly qualify a small number of enum cases that are ambiguous on newer Swift compilers.Changed cases:
WebAuthError.otherinWebAuthError.reactNativeErrorCode()DPoPError.otherinDPoPError.reactNativeErrorCode()DPoPError.unknowninDPoPError.reactNativeErrorCode()Why this is important:
.otherand.unknowncases fail to compile with errors such asambiguous use of 'other'andambiguous use of 'unknown'.Public API:
References
Public references:
react-native-auth0repository: https://github.com/auth0/react-native-auth0Non-public / local reproduction:
react-native-auth0@5.4.026.46.3If an issue is opened for this bug, it can be added here as well.
Testing
How reviewers can test:
NativeBridge.swiftno longer fails with ambiguous enum case errors for.other/.unknownTested locally:
26.4/ Swift6.3Limitations:
I validated this through downstream integration rather than this repository’s full test/build matrix
No unit tests were added because this is a compiler-compatibility fix in Swift switch matching, not a behavioral change
This change adds unit test coverage
This change has been tested on the latest version of the platform/language or why not
Reason not checked for unit coverage:
Notes:
yarn lintreports existing warnings unrelated to this change:src/core/utils/deepEqual.ts(eqeqeq)src/plugin/withAuth0.ts(@typescript-eslint/no-shadow)Fixes: Compile Issues with XCode 26.4: "Ambiguous use of" #1471, Build failing with XCode 26.4 #1470
Checklist