feat(passport): add support for 'subscribed' marketing consent status#637
Closed
rodrigo-fournier-immutable wants to merge 3 commits into
Closed
Conversation
- Add Subscribed enum value to MarketingConsentStatus - Add parsing for 'subscribed' status in PassportUI login flow - Update ToApiString() method to handle 'subscribed' conversion Ensures compatibility with Auth0 default marketing consent value
…chain Following the ts-immutable-sdk Passport v3 refactoring (commit 240cd2f15, Dec 8 2025), which introduced stricter validation via toUserImx() during user registration, we now explicitly handle the 409 Conflict error in ImxRegisterScript. When a user is already registered off-chain, the API returns a 409 error with USER_REGISTRATION_ERROR type. This change detects this specific scenario and displays a user-friendly message: 'Passport account already registered'. This ensures the UI tests (test_4_imx_functions) continue to pass and provides a better user experience when attempting to register an already registered account.
Apply the same 409 error handling fix to the sample app version of ImxRegisterScript.cs that was previously applied to the Samples~ package version. The CI tests use the sample app directory, so both files need the same fix.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds support for the 'subscribed' marketing consent status to ensure compatibility with Auth0's default marketing consent value.
Changes
Subscribedenum value toMarketingConsentStatusPassportUIlogin flowToApiString()method to handle 'subscribed' conversionWhy
Auth0 returns 'subscribed' as the default marketing consent status, but the Unity SDK only recognized 'opted_in' and 'unsubscribed'. This was causing authentication warnings and potential flow issues.
Testing
SubscribedvalueRelated