-
Notifications
You must be signed in to change notification settings - Fork 601
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
dataconnect: auth code internal cleanup #6836
Conversation
…f AtomicReference
…DataConnect.awaitAuthReady() and FirebaseDataConnect.awaitAppCheckReady()
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Test Results 66 files 66 suites 1m 18s ⏱️ Results for commit 12358d9. ♻️ This comment has been updated with latest results. |
Coverage Report 1Affected Products
Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
firebase-dataconnect/src/main/kotlin/com/google/firebase/dataconnect/core/DataConnectGrpcClient.kt:105
- Removing the suspend modifier from retryOnGrpcUnauthenticatedError could cause issues if the passed block requires suspension. Please verify that all invocations of this function do not expect suspend behavior.
private inline fun <T, R> T.retryOnGrpcUnauthenticatedError(
firebase-dataconnect/src/main/kotlin/com/google/firebase/dataconnect/core/DataConnectCredentialsTokenManager.kt:190
- Using compareAndSet on a MutableStateFlow may not work as expected, since MutableStateFlow does not offer a standard compareAndSet API. Consider using the update() method to safely modify state.
if (state.compareAndSet(oldState, State.Closed)) {
This PR refactors and cleans up some of the code related to FirebaseAuth. The changes should have no effects whatsoever on users of the Firebase Data Connect Android Kotlin SDK.