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] Get 'currentUser' on Auth worker queue #14141

Merged
merged 2 commits into from
Nov 18, 2024
Merged

[Auth] Get 'currentUser' on Auth worker queue #14141

merged 2 commits into from
Nov 18, 2024

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Nov 18, 2024

In 10.x, the ivar _currentUser was not synchronized and use within the implementation. With this PR, the new ivar should be managed just like in 10.x. The public var is now synchronized. Note, if you search for currentUser { in 10.29, you can see that the synchronized current user is not used anywhere within the implementation: https://github.com/firebase/firebase-ios-sdk/blob/10.29.0/FirebaseAuth/Sources/Auth/FIRAuth.m

Fix for some scenarios in #13231#13231 (comment). Still investigating other cases.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

Good find! Thanks.

@paulb777 paulb777 added this to the 11.6.0 - M157 milestone Nov 18, 2024
@ncooke3 ncooke3 merged commit 3efb024 into main Nov 18, 2024
55 checks passed
@ncooke3 ncooke3 deleted the nc/user-loading branch November 18, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants