Skip to content

Conversation

jonsimantov
Copy link
Contributor

…atforms.

This method allows specifying a Keychain Access Group for sharing user authentication data across multiple apps on iOS. It is a no-op on Android and desktop platforms.

Description

Provide details of the change, and generalize the change in the PR title above.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

…atforms.

This method allows specifying a Keychain Access Group for sharing user authentication data across multiple apps on iOS. It is a no-op on Android and desktop platforms.
#if FIREBASE_PLATFORM_IOS
return UseUserAccessGroupInternal(auth_data_, access_group);
#else
return kAuthErrorUnimplemented;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's just return kAuthErrorNone.

}

AuthError Auth::UseUserAccessGroup(const char* access_group) {
return kAuthErrorUnimplemented;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

kAuthErrorNone

/// emulator.
///
void UseEmulator(std::string host, uint32_t port);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move this out of the ifndef SWIG section

NSError *RemapBadProviderIDErrors(NSError *_Nonnull error);

// iOS-specific implementation of Auth::UseUserAccessGroup.
AuthError UseUserAccessGroupInternal(AuthData* auth_data, const char* access_group);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is simple enough not to need an Internal-based implementation, let's just implement it in the regular UseUserAccessGroup function.

@firebase firebase locked and limited conversation to collaborators Jul 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant