supabase-community / flutter-auth-ui

Supabase Auth UI library for Flutter
https://supabase.com
MIT License
113 stars 57 forks source link

How to implement persistent email / password field between signup/signin/magiclink/resetpassword #32

Open cgestes opened 2 years ago

cgestes commented 2 years ago

Hi,

if the feature make sense for the library, do you have an idea of how we could provide persistence between screens?

Probably we should support two use cases:

Which screen should support that? ie does it make sense for reset password?

Passing a default initialEmail/initialPassword is a bit annoying, cause with go_router when changing screens the supabase components may not change instance and those not use the new initialEmail/initialPassword

dshukertjr commented 2 years ago

I love the idea of persisting text field values across widgets!

persistently store the email to reuse at next sign in

I don't know if this behavior is common in apps in general, but do you have any example apps that have this behavior?

temporarily store email / password between the relevant screens

I don't think there is a single correct solution for implementing this! Any way to achieve it would be fine, I think!

cgestes commented 2 years ago

I don't know if this behavior is common in apps in general, but do you have any example apps that have this behavior?

signing in into google? :D

I'am not sure it belongs in this repo, but it would make sense to make it possible.

Ok we will think about a design.

henry2man commented 6 months ago

Just a simple one. Provide additional parameters in order to inject the email and/or the password with your custom ones, so you can setup your prefered persistency mechanism.