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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: a function like onAuthStateChange in firebase #68

Open
2 tasks done
mimib00 opened this issue Jun 16, 2022 · 3 comments
Open
2 tasks done

馃殌 Feature: a function like onAuthStateChange in firebase #68

mimib00 opened this issue Jun 16, 2022 · 3 comments

Comments

@mimib00
Copy link

mimib00 commented Jun 16, 2022

馃敄 Feature description

this function is a stream and returns the user object if logged in or null if logged out

right now I'm trying to make this feature but idk if the appwrite team would like this feature or not.

so far implementing this feature is like hell for me cause it's my first time trying to contribute to an open-source project.

馃帳 Pitch

in firebase, there is this function call onAuthStateChange and it's a stream that returns a user object or null, and it reacts automatically with user login and logout, it helps the dev to maintain the auth state pretty quickly as you just need to listen to the stream once and put the views you want to show when logged in and logged out.

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@lohanidamodar
Copy link
Member

@mimib00 Hi, thank you for feature request and your interest in contributing. However, rather than this being a part of our SDK this will be better suited as another package that uses Appwrite's SDK to implement this feature. Something like appwrite_auth_kit which uses ChangeNotifier and Inherited Widget to achieve something similar. Do check it out and let us know. Also if you are looking to contribute in our SDKs you should check out our https://github.com/appwrite/sdk-generator repository that's where we develop and generate our SDKs.

@mimib00
Copy link
Author

mimib00 commented Jun 19, 2022

Thanks for the reply I'll check that package, and I'll see what I can contribute to the project

@anasfik
Copy link

anasfik commented Feb 19, 2023

Thanks for the reply I'll check that package, and I'll see what I can contribute to the project

Hi, can you share with me how it was the experienxe dealing with theis package, is it reliable for imolementing same streamung mexhanisms.

And is there any implementation that should be done that it don't include ?

Thank you

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

3 participants