Skip to content

feat: Core: Auth State & User Accessors#2217

Merged
Lyokone merged 1 commit into
version-10.0.0-devfrom
feat/A2
Sep 18, 2025
Merged

feat: Core: Auth State & User Accessors#2217
Lyokone merged 1 commit into
version-10.0.0-devfrom
feat/A2

Conversation

@Lyokone

@Lyokone Lyokone commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

Implement isSignedIn(), getCurrentUser(), and authStateFlow(): Flow to expose auth state and user.


// Create auth state listener
val authStateListener = AuthStateListener { firebaseAuth ->
val currentUser = firebaseAuth.currentUser

@demolaf demolaf Sep 18, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With the potential of having to handle more states, would it be better to use when instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hum, we are determining states here depending on conditions, not sure it's required.

Comment thread auth/src/main/java/com/firebase/ui/auth/compose/FirebaseAuthUI.kt

@demolaf demolaf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Lyokone Lyokone merged commit 91b0a49 into version-10.0.0-dev Sep 18, 2025
5 checks passed
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.

2 participants