Skip to content

fix(ios): marshal booleans correctly (#999, #980) #1000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

shirakaba
Copy link
Contributor

@shirakaba shirakaba commented Jul 22, 2024

Fixes #999 and #980

Description

Changes the method signatures from (BOOL *) (which marshals both true and false from JS to NO in Objective-C) to (BOOL) (which correctly marshals true to YES and false to NO).

Steps to verify

  1. Set a breakpoint inside the iOS authorize method.
  2. Confirm that useNonce = true from JavaScript now becomes YES instead of NO.

Copy link

changeset-bot bot commented Jul 22, 2024

🦋 Changeset detected

Latest commit: 7d1a93e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-native-app-auth Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-app-auth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 2:48am

@shirakaba shirakaba changed the title fix(ios): marshal booleans correctly (#999) fix(ios): marshal booleans correctly (#999, #980) Jul 22, 2024
@sankar-gp
Copy link

sankar-gp commented Jul 23, 2024

Could you let me know the approximate date for the publication of these changes and the release of the new version of the react-native-app-auth library?

@zibs zibs self-requested a review July 23, 2024 21:23
Copy link
Contributor

@zibs zibs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @shirakaba -- this looks good and seemed to work in my testing!

@carbonrobot carbonrobot merged commit 31f903f into FormidableLabs:main Jul 24, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useNonce, usePCKE, and prefersEphemeralSession always false on iOS (and Mac Catalyst)
4 participants