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

new firebase_auth 0.18 beaking changes #10

Open
AbdoZDGaia opened this issue Sep 5, 2020 · 4 comments
Open

new firebase_auth 0.18 beaking changes #10

AbdoZDGaia opened this issue Sep 5, 2020 · 4 comments

Comments

@AbdoZDGaia
Copy link

as of update 0.18 there's been changes in the way user state is handled.
_firebaseAuth.CurrentUser() is no longer usable, CurrentUser is now just a getter.

/// Returns the current [User] if they are currently signed-in, or null if /// not. /// /// You should not use this getter to determine the users current state, /// instead use [authStateChanges], [idTokenChanges] or [userChanges] to /// subscribe to updates.

can you please, even if you're not willing to update the entire project, just tell me how to handle the "authStateChanges" stream
for example through the firebase authentication facade? and pass it down to states and firing events based on how we listen to it.

@A1000carZ
Copy link

Try this: #9 (comment)

@CharlesTheProgrammerBrown

pls has anyone come up with the solution to this?

@becbelk
Copy link

becbelk commented Jul 22, 2021

you must renamethe User class to a different name ex:User--> AppUser and FirebaseUser --> User

@woodsoul507
Copy link

woodsoul507 commented Aug 21, 2021

Try this: #9 (comment)
@A1000carZ
I am getting this error yet:

The argument type 'dynamic' can't be assigned to the parameter type 'AppUser?'.

Can I get some help on this issue? Thanks.

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

No branches or pull requests

5 participants