You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ios): match CodeGen nullability on webAuth token exchange params - #1741
iOS no longer compiles on master. #1737 declared tokenExchangeMaxRetries and tokenExchangeRetryDelay in ios/A0Auth0.mm as (NSNumber * _Nullable), but CodeGen generates them as plain (NSNumber *), which is nonnull because the generated header is in an assume-nonnull region. Clang rejects the mismatch:
A0Auth0.mm:158:47: error: nullability specifier '_Nullable' conflicts with existing specifier 'nonnull'
A0Auth0.mm:159:47: error: nullability specifier '_Nullable' conflicts with existing specifier 'nonnull'
This changes both parameters to (NSNumber *) so they match the generated protocol and the style of the other params in the file ((NSString *)scheme). I avoided nonnull on purpose: JS passes undefined for both by default, and nonnull could reject that on the old architecture.
No public API or TypeScript change. The iOS bridge still accepts and ignores both options, as it does today. Android is unaffected.
Reverting is a plain revert of two lines, but until this or an equivalent fix lands, iOS builds fail on master, so it should go in before the next release.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
API Changes
The iOS authentication API now marks token-exchange retry count and delay options as non-nullable. Integrations using this API should pass values for both options; the change updates their declared nullability.
The webAuth method now declares tokenExchangeMaxRetries and tokenExchangeRetryDelay as nonnull NSNumber * parameters.
This change fixes iOS build errors caused by mismatched nullability and does not alter runtime behavior or the public API. No merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the change: iOS webAuth token exchange params now match CodeGen nullability. The raw summary confirms the change to tokenExchangeMaxRetries and tokenExchangeRetryDelay in ios/A0Auth0.m…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is specific and related to the changeset. It explains that the iOS build fails on master because tokenExchangeMaxRetries and tokenExchangeRetryDelay were declared as nullable in ios/A0…
Full details: Title check
Explanation
The title names the change: iOS webAuth token exchange params now match CodeGen nullability. The raw summary confirms the change to tokenExchangeMaxRetries and tokenExchangeRetryDelay in ios/A0Auth0.mm from nullable to nonnull NSNumber pointers. The title is specific and fits the single-file, two-line diff. Note the summary calls the change nonnull, while the description says it changes to plain (NSNumber *), which is nonnull under assume-nonnull; this does not affect the title's accuracy.
Full details: Description check
Explanation
The description is specific and related to the changeset. It explains that the iOS build fails on master because tokenExchangeMaxRetries and tokenExchangeRetryDelay were declared as nullable in ios/A0Auth0.mm, while CodeGen generates them as nonnull. It gives the Clang error text, the two-line diff that changes them to (NSNumber *), the reason nonnull was avoided, and the build test performed. This matches the raw summary, which records the same two-line nullability change in ios/A0Auth0.mm.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between 3045420 and 81017e9.
Files selected for processing: 1
ios/A0Auth0.mm
Included review availability: This review used your included allowance. 7 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 8 reviews per hour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
iOS no longer compiles on
master. #1737 declaredtokenExchangeMaxRetriesandtokenExchangeRetryDelayinios/A0Auth0.mmas(NSNumber * _Nullable), but CodeGen generates them as plain(NSNumber *), which is nonnull because the generated header is in an assume-nonnull region. Clang rejects the mismatch:This changes both parameters to
(NSNumber *)so they match the generated protocol and the style of the other params in the file ((NSString *)scheme). I avoidednonnullon purpose: JS passesundefinedfor both by default, andnonnullcould reject that on the old architecture.No public API or TypeScript change. The iOS bridge still accepts and ignores both options, as it does today. Android is unaffected.
Reverting is a plain revert of two lines, but until this or an equivalent fix lands, iOS builds fail on
master, so it should go in before the next release.References
Testing
xcodebuildDebug build of the example app for the iOS simulator (iPhone 18 Pro, iOS 27.2, Xcode 27):A0Auth0.oand the app binary are rebuilt.I did not run
webAuthon iOS with this build, andyarn testis unaffected since no TypeScript changed.Checklist