Skip to content
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

Auth rewrite #1254

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Auth rewrite #1254

wants to merge 15 commits into from

Conversation

DellaBitta
Copy link
Contributor

Description

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

Feature branch, do not merge.


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.

DellaBitta and others added 15 commits March 10, 2023 11:15
Update auth internals to support returning Future object for the new API while also support returning Future<User*> objects for the deprecated API on iOS.

Changes does not include the new Future methods.
Removes the need for User objects to be stored in AuthData, unlocking ability for there to be more than one User object at a time.

Continues to store a User in Auth, though, to maintain the implementation of the newly deprecated methods which return a User*.

Added a RetainUser integration test.
@@ -493,6 +543,7 @@ class User : public UserInfoInterface {

// Use the pimpl mechanism to hide data details in the cpp files.
AuthData* auth_data_;
UserInternal* user_internal_;
};

} // namespace auth
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: [3 lines down] warning: More #endif's than #if's found.


/// @deprecated This is a deprecated method. Please use
/// @CreateUserWithEmailAndPassword instead.
///
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: Found unknown command '\CreateUserWithEmailAndPassword'

@@ -146,6 +147,8 @@

~Auth();

/// @deprecated This is a deprecated method. Please use @current_user instead.
///
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: Found unknown command '\current_user'


/// @deprecated This is a deprecated method. Please use
/// @SignInAndRetrieveDataWithCredential instead.
///
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: Found unknown command '\SignInAndRetrieveDataWithCredential'


/// @deprecated This is a deprecated method. Please use @SignInWithCredential
/// instead.
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: Found unknown command '\SignInWithCredential'


/// @deprecated
///
/// Get results of the most recent call to @ref ReauthenticateAndRetrieveData.
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: unable to resolve reference to 'ReauthenticateAndRetrieveData' for \ref command


/// @deprecated This is a deprecated method. Please use
/// @ref ReauthenticateWithProvider(FederatedAuthProvider*) instead.
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: unable to resolve reference to 'ReauthenticateWithProvider(FederatedAuthProvider*)' for \ref command


/// @deprecated This is a deprecated method. Please use @ref Unlink(const
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: unable to resolve reference to 'Unlink' for \ref command


/// @deprecated
///
/// Get results of the most recent call to @ref Unlink.
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: unable to resolve reference to 'Unlink' for \ref command


/// @deprecated This is a deprecated method. Please use
/// @ref UpdatePhoneNumberCredential(const PhoneAuthCredential&) instead.
Copy link

Choose a reason for hiding this comment

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

📝 Documentation issue: warning: unable to resolve reference to 'UpdatePhoneNumberCredential(const PhoneAuthCredential&)' for \ref command

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.

None yet

1 participant